I have gotten this error:
Compilation failure
Unable to locate the Javac Compiler in:
/usr/lib/jvm/java-7-openjdk-amd64/jre/../lib/tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
Now I have set some info in my .bashrc
file like so: export PATH=$PATH:/usr/lib/jvm/java-6-openjdk/bin
. I also did it in my /etc/profile file. But it still fails. But I am noticing that the above error is still going into jre
instead of jvm
. I don't really understand why its doing that. When I do which javac
, it directs me to /usr/bin/javac
. What exactly is that file? It seems Ubuntu defaults to JRE rather than the SDK. Either way I am confused as to how to fix this. Any help would be appreciated!