-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
g]On Behalf Of Stefan Bodewig
Sent: Friday, July 20, 2001 3:12 PM
To: [EMAIL PROTECTED]
Subject: Re: classloader problems with dll
On Fri, 20 Jul 2001, Detlef Brendle <[EMAIL PROTECTED]> wrote:
> have u had success including the ant.jar, junit.jar and optional.jar
I think so, at least in my case it works if running a JDK > 1.1.
JDK 1.1 will not work, as the mechanism I use relies on the URL
Class.getResource() returns - and this one is unusable for archives in
JDK 1.1 (read, it doesn't contain the name of the archive).
Stefan
I got the impression that it is not working very well. I still get the same
message when running ant1.4alpha.
the error message is:
runTests:
[junit] java.lang.NoClassDefFoundError:
org/apache/tools/ant/taskdefs/option
al/junit/JUnitTestRunner
[junit] Exception in thread "main"
BUILD FAILED
I removed the pathelements from junit.jar,optional.jar, ant.jar.
the task looks like :
<target name="runTests">
<junit printsummary="no" haltonfailure="yes" fork="yes">
<classpath>
<pathelement location="${build}"/>
<!-- here was the path to the jar files. -->
<pathelement location="${dist}/PerlTools.jar"/>
<pathelement location="../../../lib/servlet.jar"/>
</classpath>
<formatter type="plain"/>
<test name="${servicePackage}.AllTests"
outfile="TestResults-${serviceName}"/>
</junit>
</target>