Louise Pryor <[EMAIL PROTECTED]> 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

Reply via email to