首页 > 代码库 > /bin/bash: jar: command not found(转载)

/bin/bash: jar: command not found(转载)

  转自:http://blog.csdn.net/zhangdaiscott/article/details/23138023

 

/bin/bash: jar: command not found
解决办法:

cd /usr/bin

必须先进入/usr/bin,下同

sudo ln -s -f /usr/lib/jvm/jdk1.6.0_30/bin/jar

我的jdk是安装在/usr/lib/jvm/jdk1.6.0_30/目录下的

如果提示javah:commond not found,于是照葫芦画瓢,输入命令

cd /usr/bin
ln -s -f /usr/lib/jvm/jdk1.6.0_30/bin/javah

/bin/bash: jar: command not found(转载)