> 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
RE: Fixing Classloader Linking Errors
Bendfelt, Tim (MED, nVisia, GEMS-IT) Fri, 04 May 2001 15:55:46 -0700
- Fixing Classloader Linking Errors Bendfelt, Tim (MED, nVisia, GEMS-IT)
- RE: Fixing Classloader Linking E... Stephane Bailliez
- Re: Fixing Classloader Linki... Conor MacNeill
- RE: Fixing Classloader Linking E... Bendfelt, Tim (MED, nVisia, GEMS-IT)
- RE: Fixing Classloader Linking E... Stephane Bailliez
