I recently came across a rather confusing issue with Ant not compiling in Eclipse, giving the following error:
[javac] BUILD FAILED: [build file location]
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
I first made sure my Classpath was pointing to my jdk bin, which it was, then [...]