If you face this problem, probably you are using Ant tasks that include the javac task for compiling Java source. This simply means that Ant could not find a Java compiler.
BUILD FAILED D:\research\ant\firstbuild\build.xml:9: 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\jre7" Total time: 0 seconds
For Eclipse user you can add items to Ant’s class-path from the Ant > Runtime preference page. If you launch Eclipse by using a full JDK instead of a JRE, tools.jar should appear on the Ant class-path automatically.
