--- Mike Cepek <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>