0
我已經設置JAVA_HOME
環境變量.bashrc
這樣的:爲什麼NetBeans的環境變量不能確認系統的設置?
export JAVA_HOME='/opt/Oracle/jdk1.7.0_25'
而且我相信,它的正確設置:
$ echo $JAVA_HOME
/opt/Oracle/jdk1.7.0_25
但是當我使用NetBeans開始我的谷歌應用程序引擎服務器,它說:
...
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "/usr/lib/jvm/java-7-openjdk-amd64/jre"
爲什麼它被改變了?