This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler 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 Customer Requirements for Developers this week in the Jobs Discussion 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: 5852

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
It's not a secret anymore!