• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Tanushri Mukherjee
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 3159
33
Google App Engine Java Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tanushri Mukherjee
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Please help me resolving me this issue. I am stuck here.
 
Joanne Neal
Rancher
Pie
Posts: 3742
16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mohamed Sanaulla
Saloon Keeper
Pie
Posts: 3159
33
Google App Engine Java Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic