Please report the specific error printed out.
Also, do you have junit.jar on your classpath as well?
Jeremy
On 27-Mar-06, at 5:29 PM, MikeG wrote:
Hi, can anyone help me to get junit to work with ant?
Ant and JUnit both work on their own but Ant doesn't recognise the
<junit> tag.
According to the ant faq the fix for this is to set ANT_PATH such
that $ANT_PATH/lib contains ant-junit.jar but on my system ant-
junit.jar is in /usr/local/lib/java/ant/ant-junit.jar
I've tried setting ANT_HOME to /usr/local/bin and /usr/local/lib/
java/ant/, I've tried adding ant-junit.jar to my CLASSPATH var, and
to the classpaths used within the ant build file but nothing works.
Can anyone enlighten me? I can't find anything in the archives or
through google.
I'm using openbsd 3.8, java 1.5.0-p1, ant 1.6.5, junit 3.8.1p0
installed from ports and packages.
Thankyou for your time
Mike