This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes ant build Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant build Exception" Watch "ant build Exception" New topic

ant build Exception

Shyam Hai
Ranch Hand

Joined: Feb 04, 2009
Posts: 68

When i run the ant build
that time i'm get this error.

"ant build Exception in thread "main" java.lang.NoClassDefFoundError"

How to rectify.
Peter Johnson

Joined: May 14, 2008
Posts: 5812

The solution is simple - make sure the classpath includes the class in question.

If you need more help than that, please provide some information so that we can help you. Such items would include the console ouptut for the target and/or task being run, and the target and/or task from the build.xml file (or even the whole build.xml file).

(By the way, looks like you posted twice - I deleted the duplicate.)

JBoss In Action
I agree. Here's the link:
subject: ant build Exception
Similar Threads
How to execute ant command from a java program using runtime.exec()?
Eclipse with Ant
The hibernatetool ant Task
Problem in building project using Ant build tool
problems with ant installation