Hint: Ant plugin for Eclipse doesn't compile

From: Meikel (m.bisping_at_gmx.de)
Date: 04/22/04


Date: 22 Apr 2004 01:43:04 -0700

Ant under eclipse didn't compile, inspite of the fact that JAVA_HOME
was set
       [javac] BUILD FAILED: file:e:workspace/tools/build.xml:36:
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 solved the problem by going to Window/Preferences/Ant/Runtime

Add Jar
c:\j2sdk1.4.2\lib\tools.jar



Relevant Pages

  • Re: Eclipse + WTP Help
    ... 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 ...
    (comp.lang.java.programmer)
  • Re: Eclipse + WTP Help
    ... 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 ...
    (comp.lang.java.programmer)
  • Tomcat javac and war
    ... I have a new context that I added by war. ... com.sun.tools.javac.Main is not on the classpath. ...
    (comp.lang.java.programmer)