I was working on a Strunt2 framework project and I needed to use ant in eclipse. I got a problem like this:
BUILD FAILED: D:workspacespschemabuild.xml:37: 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
The solution is to go Window>>Preferences>>Ant>>Runtime than add the "tools.jar" file (somewhere in the JDK's folder) to jars that are in the Heading "Ant Home Entries".
That's it 🙂 have fun!