File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
jQuery in Action, 3rd edition