ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Net4Nuts <>
Subject Re: [More optional task problems]
Date Fri, 08 Jun 2001 16:23:03 GMT
Louise Pryor <> wrote:
Ok, I must be doing something really stupid... but what?

I have optional.jar in my ANT_HOME/lib.

However, I still have to do a taskdef for the junit task, else it doesn't 
find the task;

and then, when I run it, I get

     [junit] Running
     [junit] java.lang.NoClassDefFoundError: 

I'm running with ant 1.3, junit 3.1.

I run ant on NT from my own batch file, which sets ANT_HOME and adds 
%ANT_HOME%\bin onto the front of PATH.

The behaviour looks as if it's not picking up the file 
(but it's right there in the jar, I can see it)
and then as if it wants optional.jar in the classpath for the junit task. 
but surely that can't be right.

Thanks for any help!


Louise Pryor                     Securities Finance Systems Ltd    CBC House
T: +44 131 272 2782              24 Canning Street
F: +44 131 272 2800              Edinburgh EH3 8EG      Scotland

Get free email and a permanent address at

View raw message