ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Cepek" <mce...@smsi.com>
Subject RE: Usage/projecthelp failing
Date Mon, 22 Jul 2002 14:53:43 GMT
--- Mike Cepek <mcepek@smsi.com> 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
> BUILD SUCCESSFUL


--- Diane Holt <holtdl@yahoo.com> 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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message