jar:在Bash中找不到命令 [英] jar: command not found in Bash

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

问题描述

我在以下位置创建了一个jar文件:命令如下:

  jar tf /usr/local/bin/niidle.jar 

然后它显示以下错误:

  - 程序'jar'可以在以下包中找到:
* java-gcj-compat-headless
* gcj-4.2
* sun-java5-jdk
* kaffe
* gcj-4.3
* cacao-oj6-jdk
* openjdk-6-jdk
* fastjar
* sun-java6-jdk
尝试:apt-get install< selected package>
bash:jar:command not found

你有解决方案吗? p>

解决方案

在Ubuntu 12.10程序jar在/ usr / lib / jvm / jdk- [version] / bin
edit文件/ etc / environment添加到路径。关闭会话并打开一个新的会话。


I created one jar file in following location: '/usr/local/bin/niidle.jar'

But when I type command as follows:

jar tf /usr/local/bin/niidle.jar

then it shows the following error:

--The program 'jar' can be found in the following packages:
 * java-gcj-compat-headless
 * gcj-4.2
 * sun-java5-jdk
 * kaffe
 * gcj-4.3
 * cacao-oj6-jdk
 * openjdk-6-jdk
 * fastjar
 * sun-java6-jdk
Try: apt-get install <selected package>
bash: jar: command not found

Do you have a solution for this?

解决方案

On Ubuntu 12.10 The program jar is in /usr/lib/jvm/jdk-[version]/bin edit the file /etc/environment for add to the path. Close the session and open a new session.

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

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