When attempting to compile, I get an error:
Compilation error: Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\Program Files\Java\jdk1.6.0_06\jre"
Obviously, this isn't right. It should be set to "C:\Program
Files\Java\jdk1.6.0_06". I don't know why it has that "jre" directory at
the end. My environment variable for JAVA_HOME is set to "C:\Program
Files\Java\jdk1.6.0_06". The location of the installed JRE in
Preferences>Java>Installed JREs is "C:\Program Files\Java\jdk1.6.0_06".
Even Ant seems configured correctly with
Preferences>Ant>Runtime>Classpath>Global Entries listing "C:\Program
Files\Java\jdk1.6.0_06\lib\tools.jar".
I can't figure out why Eclipse is looking for javac in the jre
subdirectory,
and I am scratching my head trying to figure out where this setting was
made. Does anybody have any idea why this is happening?
-KPF