ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: More optional task problems
Date Fri, 08 Jun 2001 13:20:37 GMT
Louise Pryor <louise.pryor@riskexplorer.com> wrote:

> 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
> 
> run.test:
>      [junit] Running dev.uk.co.sfs.calcengine.RRResultsTest
>      [junit] java.lang.NoClassDefFoundError:
>      org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner

Well, if this is the message, Ant obviously knows which class it is
supposed to load for the junit task.

Are you specifying a classpath with your taskdef? I guess junit is not
in your system CLASSPATH so Ant cannot load the junit task because it
doesn't find JUnit itself.

Stefan

Mime
View raw message