bash:jar:找不到命令 [英] bash: jar: command not found

查看:189
本文介绍了bash:jar:找不到命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Jenkins 来部署构建.

I'm using Jenkins to deploy the build.

我们需要将 .war 中的文件提取到某个目录中. 我们有一个 .xml 文件,该文件包含用于从 .war 文件中提取文件并启动服务器的命令.

We need to extract files from a .war into some directory. We have an .xml file which includes commands to extract the files from the .war file and start the server.

正在正确创建内部版本,但没有进行 .war 解压缩,并且目标文件夹为空. Jenkins控制台显示以下输出:

The build is being created properly but the .war extraction is not happening and the destination folder is being left empty. The Jenkins Console shows the following output:

[sshexec] bash: jar: command not found

从其他答案中可以看出,我已经在 .bashrc .profile 中正确设置了PATH,但是我仍然面临着同样的问题.

As read from other answers, I have set the PATH properly in .bashrc or in .profile but I'm still facing the same issue.

推荐答案

按如下所示安装Java开发:

Install Java devel as follows:

 yum install java-devel

这篇关于bash:jar:找不到命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆