> As you guessed, this is due to the fact that you cannot load 
> twice the same
> class with different classloaders in the same JVM, this is to 
> prevent some
> malicious hacking by replacing classes.
> 
> Your only choice is to run with fork=yes or to avoid 
> duplicating the classes
> in your junit task classpath
> 
> What prevents you from forking ?
> 

I am now forking and it works, but when I fork junit, I need to put
"optional.jar" and "ant.jar" in the classpath of the junit task. This
doesn't seem correct, but it is the only way to fork the junit task. 

Tim

Reply via email to