Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / March 2004

Tip: Looking for answers? Try searching our database.

ant junit problem with netbeans

Thread view: 
Yrgo Ringo - 21 Mar 2004 17:28 GMT
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)



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.