ant-user mailing list archives

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

> Unable to find a javac compiler; 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

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

Probably more reasons are possible.


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

View raw message