Unable to find a javac compiler. Perhaps JAVA_HOME does not point to the JDK
June 24th, 2011
This is sort of a Note to Self post.
In a very odd situation where you have set JAVA_HOME to the SDK, and it still complains that
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 whatever
Solution is:
Copy JAVA_HOME\lib\tools.jar to JAVA_HOME\jre6\lib\ext
Credit: http://www.drftpd.org/forums/viewtopic.php?f=5&t=2978