[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Howto run Junit in Ant?



Hi list,

I try to run a junit-task with ant1.6 in Debian testing. I have
installed both ant and junit, I checked the directory
/usr/share/ant1.6/lib contains ant-junit.jar. I always get the following
error:

<...>
BUILD FAILED
/home/roman/Entwicklung/KTv4/build.xml:61: Could not create type junit
due to java.lang.NoClassDefFoundError:
Lorg/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner;

I tried to include ant-junit.jar explicitly in the target through
<classpath>..</classpath>. I tried to call ant with the -lib option. All
without success. Am I missing something important here?

BTW: I tried this with kaffe and Blackdown Java.

/Roman

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


Reply to: