ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darin Swanson <>
Subject Re: Ant in Eclipse 2.1: Unable to find a javac compiler
Date Tue, 08 Apr 2003 17:48:00 GMT
Robert, don't hesitate to ask your Eclipse questions on the 
newsgroup ( to get a faster response and be more 
on topic.

You are missing a tools.jar on the runtime classpath of Ant used in the 
Eclipse integration.
If you start Eclipse with a JDK install (using the -vm argument), 
tools.jar will be added automatically.
Otherwise, you can add it yourself using 

BTW, Eclipse has its own compiler entirely independent of javac or 


"Robert Douglass" <>
02/05/02 08:34 PM
Please respond to "Ant Users List"

        To:     <>
        Subject:        Ant in Eclipse 2.1: Unable to find a javac compiler


I've just upgraded my Eclipse IDE to 2.1, and with it I got ant 1.5.2.
However, I get the following error which is hard for me to understand:

[javac] BUILD FAILED: file:F:/tdk/webapps/webs4/WEB-INF/build/build.xml:399:
Unable to find a javac compiler; is not on the
classpath. Perhaps JAVA_HOME does not point to the JDK

It is hard for me to understand because Eclipse has no problem compiling 
code, and JAVA_HOME is set properly. Anybody have any suggestions? Thanks,

Robert Douglass

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message