ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Master, Tariq \(Abbeywood\)" <Tariq.Mas...@uk.bp.com>
Subject A junit classpath problem on unix (same script/setup works on WinXP)
Date Tue, 11 Jul 2006 11:37:21 GMT
Environment:  Solaris 9, Ant 1.6.5
ANT_HOME set.
JDK: 1.4.2_04-b05

junit.jar and other external libraries in  ~/.ant/lib/

When I run my test target, I get:
test:
Override ignored for property reports.junit.dir
    [junit] Found /export/home/myuser/.ant/lib/junit.jar
    [junit] Found /opt/ant/lib/ant-launcher.jar
    [junit] Found /opt/ant/lib/ant.jar
    [junit] Found /opt/ant/lib/ant-junit.jar
    [junit] Found /export/home/myuser/.ant/lib/junit.jar
    [junit] Found /opt/ant/lib/ant-launcher.jar
    [junit] Found /opt/ant/lib/ant.jar
    [junit] Found /opt/ant/lib/ant-junit.jar    

[junit] Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/taskdefs/optional/junit/JUnitTestRunner


My same script works on WinXP.  On windows I have a clean Ant install
and again libraries get copied to $(user.home}/.ant/lib .
Rather puzzled.

I have read: http://ant.apache.org/faq.html#delegating-classloader  many
times over.

>From ym understanding, as "ant-junit.jar" is in the coreloader and
.ant/lib/junit.jar is in it too, they should be able to find one
another.


I'm stuck.


Tariq

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message