File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Exception in thread 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 » Java » Java in General
Bookmark "Exception in thread "main" java.lang.NoClassDefFoundError: " Watch "Exception in thread "main" java.lang.NoClassDefFoundError: " New topic
Author

Exception in thread "main" java.lang.NoClassDefFoundError:

Tanushri Mukherjee
Greenhorn

Joined: Jan 15, 2012
Posts: 2
Hi Frens,

How to resolve this issue of "Exception in thread "main" java.lang.NoClassDefFoundError: " I have java in my system but I am not able to run the program. Please need help.

Thanks
Tanu
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

May be you need to specify the classpath for the classes you are trying to use. But you could TellTheDetails, may be show the code also the location where the classes exist.


Mohamed Sanaulla | My Blog
Tanushri Mukherjee
Greenhorn

Joined: Jan 15, 2012
Posts: 2

Please help me resolving me this issue. I am stuck here.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3432
    
  12
Tanushri Mukherjee wrote:
Please help me resolving me this issue. I am stuck here.


Mohamed Sanaulla wrote:May be you need to specify the classpath for the classes you are trying to use. But you could TellTheDetails, may be show the code also the location where the classes exist.


Joanne
Mohamed Sanaulla
Saloon Keeper

Joined: Sep 08, 2007
Posts: 3068
    
  33

Tanushri Mukherjee wrote:
Please help me resolving me this issue. I am stuck here.

So did you read the article about classpath? (I provided the link in the first post). If you are creating your first program then I would suggest you read this as well.
 
jQuery in Action, 2nd edition
 
subject: Exception in thread "main" java.lang.NoClassDefFoundError:
 
Similar Threads
Connection to remote DB server to run JDBC application program
Another mock exam question.
Getting runtime error on HelloWorld
Help
error with EJB first example