ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Setting classpath for Taskdef
Date Mon, 10 Dec 2001 07:11:30 GMT
On Mon, 10 Dec 2001, William Ferguson <>

> optional.jar is already in %ANT_HOME%\lib and it finds it OK.

And that's the problem.

You load the task implementation from the system classpath - and the
system classloader doesn't know about j2ee.jar.  This is Java's model
of delegating classloaders (Ant will always consult the system
classloader first).

The only fix:  (1) remove the task implementation from the system
classpath (remove optional.jar from ANT_HOME/lib or remove the classes
in question from that jar) and (2) add the task implementation to your
nested classpath element of the taskdef.


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

View raw message