ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Ant ClassLoader Woes
Date Tue, 18 Nov 2003 09:48:44 GMT
On Mon, 17 Nov 2003, Kevin J. Citron <kevinc@elp.rr.com> wrote:

> Unable to find a javac compiler; com.sun.tools.javac.Main is not on
> the classpath.

This means that for some reason your JDK's tools.jar has not been
included in the CLASSPATH.

If you point your JAVA_HOME environment variable to your JDK
installation (and export JAVA_HOME, of course), Ant's wrapper script
is supposed to include it automatically.

> Detected Java version: 1.4 in: /usr/j2sdk1.4.2_02/jre

This means, that JAVA_HOME should point to /usr/j2sdk1.4.2_02 and that
the the "ant" wrapper script should include
/usr/j2sdk1.4.2_02/lib/tools.jar in the CLASSPATH.

There are a couple of reasons why this could fail:

* There is no /usr/j2sdk1.4.2_02/lib/tools.jar - which JDK is this,
  where did you get it from?

* you are not using Ant's wrapper script at all - how do you invoke
  Ant?

* you use a modified version of the wrapper script - where did you get
  your version of Ant?

Probably more reasons are possible.

Stefan

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


Mime
View raw message