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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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: 3071
    
  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: 3720
    
  16
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: 3071
    
  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.
 
 
subject: Exception in thread "main" java.lang.NoClassDefFoundError: