I have set JAVA_HOME
environment variable in .bashrc
like this:
export JAVA_HOME='/opt/Oracle/jdk1.7.0_25'
And I am sure that it's properly set:
$ echo $JAVA_HOME
/opt/Oracle/jdk1.7.0_25
But when I am using NetBeans to start my Google App Engine server, it says:
...
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"
Why it is changed?