• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Please help me resolving me this issue. I am stuck here.
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 3225
34
IntelliJ IDE Oracle Spring Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic