/bin/bash: jar: command not found

/bin/bash: jar: command not found

解决办法:

1. cd /usr/bin

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

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

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

3. 如果提示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)