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
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply 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
Bartender

Joined: Sep 08, 2007
Posts: 2946
    
  15

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: 3011
    
    9
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
Bartender

Joined: Sep 08, 2007
Posts: 2946
    
  15

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception in thread "main" java.lang.NoClassDefFoundError:
 
Similar Threads
Getting runtime error on HelloWorld
Help
error with EJB first example
Another mock exam question.
Connection to remote DB server to run JDBC application program