java命令not found
Tofloor
poster avatar
qilinhack
deepin
2013-11-20 20:41
Author
在更新2013测试源之前,在命令行中和shell脚本中的java命令运行是正常的,更新了测试源之后,命令行输入java可以正常运行,但是在脚本中说找不到命令,加上全路径后可以正常运行,jdk的环境变量配置是正确的,但运行eclipse不了,错误如下图
DeepinScreenshot20131120123100.png
有人碰到过么???
Reply Favorite View the author
All Replies
zhang12345shun
deepin
2016-01-17 09:18
#1
.sudo update-alternatives --install /usr/bin/java java /opt/jdk1.8.0_66/bin/java 1000
sudo update-alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_66/bin/javac 1000
Reply View the author
zhang12345shun
deepin
2016-01-17 09:42
#2
参考官网:
Starting with version 8u40, the JDK installation is integrated with the alternatives framework and after installation, the alternatives framework is updated to reflect the binaries from the recently installed JDK. Java commands such as java, javac, javadoc, and javap can be invoked from the command line.
Reply View the author
Fly_365
deepin
2016-01-17 16:30
#3
环境变量配置有些问题吧
Reply View the author