Hi,
When I execute my Ant script it fails compiling my test classes. It says
"package junit.framework does not exist".
However I can compile and run my tests just fine if doing it manually. I'm
using NetBeans IDE 3.5.
Any help is welcome!
Thanks!
Geiregat Jonas - 22 Mar 2004 23:58 GMT
> Hi,
>
[quoted text clipped - 6 lines]
> Any help is welcome!
> Thanks!
Posting a part of the code that might contain the probleme would help
alot ...
Yrgo Ringo - 23 Mar 2004 19:51 GMT
In my build file I have this target:
<target name="JUNIT">
<available property="junit.presesent"
classname="junit.framework.TestCase"/>
</target>
For some reason is says "Unable to load class junit.framework.TestCase to
set property junit.presesent". However I have junit paths set under Ant
properties:
netbeans.filesystems.path=C\:\\Documents and
Settings\\Administrator\\.netbeans\\3.5\\modules\\ext\\junit-3.8.1.jar;C\:\\
Documents and
Settings\\Administrator\\.netbeans\\3.5\\modules\\ext\\junit-testrunner.jar;
the same is set also for netbeans.library.path
I junit and ant should be installed correctly because they are both
installed through NetBeans.
> > Hi,
> >
[quoted text clipped - 9 lines]
> Posting a part of the code that might contain the probleme would help
> alot ...
Tony Morris - 27 Mar 2004 07:05 GMT
> Hi,
>
[quoted text clipped - 6 lines]
> Any help is welcome!
> Thanks!
Put junit.jar in $ANT_HOME/lib.

Signature
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)