dcsimg
Ant in Eclipse can't find javac
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Pedersen
Posted On:   Wednesday, May 7, 2003 02:52 AM

I have an ant build.xml file which works fine when I execute it from a command
line.


In Eclipse, if I run the same file, I get this error message:


[javac] BUILD FAILED: file:C:/eclipse/workspace/Fishtek/build.xml:292: 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


JAVA_HOME does point to the JDK.


I don't understand how ant can have 'lost' the compiler!


Thanks,


John

Re: Ant in Eclipse can't find javac

Posted By:   Eugene_Kuleshov  
Posted On:   Wednesday, May 7, 2003 09:52 AM

You should add lib ools.jar to the classpath on the Ant's runtime properties dialog in the Eclipse.
About | Sitemap | Contact