Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ant build Exception

 
Shyam Hai
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


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.
Please..
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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). http://faq.javaranch.com/java/TellTheDetails

(By the way, looks like you posted twice - I deleted the duplicate.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic