ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darin Swanson <Darin_Swan...@us.ibm.com>
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 eclipse.tools 
newsgroup (news.eclipse.org)...likely 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 
Window>Preferences>Ant>Runtime>Classpath.

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

HTH
Darins





"Robert Douglass" <r.douglass@onlinehome.de>
02/05/02 08:34 PM
Please respond to "Ant Users List"

 
        To:     <user@ant.apache.org>
        cc: 
        Subject:        Ant in Eclipse 2.1: Unable to find a javac compiler



Hello,

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; com.sun.tools.javac.Main 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 
my
code, and JAVA_HOME is set properly. Anybody have any suggestions? Thanks,

Robert Douglass


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org




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