ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Cepek" <>
Subject RE: Usage/projecthelp failing
Date Mon, 22 Jul 2002 14:53:43 GMT
--- Mike Cepek <> wrote:

> Nope.  NetBeans, Win2K and Linux all do this with fork=true added:
> projecthelp:
> java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
> Exception in thread "main"
> Java Result: 1

--- Diane Holt <> wrote:

> Add:
>    <classpath path="${java.class.path}"/>
> to your <java> task.

The above didn't work.  However, I guessed at adding this instead:

   <classpath location=".../ant/v1.4.1/lib/ant.jar"/>

and it solved the problem.

(Yes, Ant is not in our CLASSPATH env var.  In fact we run with no
CLASSPATH env var defined to help maintain consistency between all our
development and production machines.  This allows us to check all our
third-party dependencies, including version, into CVS).

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

View raw message