问题:
/bin/bash: jar: command not found
/bin/bash: javah: command not found
解决办法:
cd /usr/bin
必须先进入/usr/bin
,我的jdk是安装在/usr/lib/jvm/jdk1.6.0_42/
目录下的
sudo ln -s -f /usr/lib/jvm/jdk1.6.0_42/bin/jar
如果提示javah:commond not found
,一样道理
cd /usr/bin
sudo ln -s -f /usr/lib/jvm/jdk1.6.0_42/bin/javah
转载自
http://cofface.blog.163.com/blog/static/209806086201331764347226/