This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Java in General and the fly likes running junit from ant Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Reply locked New topic

running junit from ant

urvi kalia

Joined: Aug 22, 2006
Posts: 4
i am trying to run junitusing ant script .
coded in build file is --
<target name="Run JUnit" description="runs junit">
<echo message="Running Junit" level="info"/>

<test name="junitTestClient2"></test>
<classpath refid="testapp-classpath"/>
<formatter type="plain" usefile="false"/>

when i run this --
build failed.
due to classnotfoundexception --junitTestclient2

what do i need to do?
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

Please don't post the same question in multiple forums. It creates duplicate conversations and wastes the time of the people trying to help you.

I agree. Here's the link:
subject: running junit from ant
It's not a secret anymore!