ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bendfelt, Tim (MED, nVisia, GEMS-IT)" <Timothy.Bendf...@med.ge.com>
Subject RE: Fixing Classloader Linking Errors
Date Fri, 04 May 2001 22:31:56 GMT
> 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

Mime
View raw message