This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help for "noclassdefinitionerror"

 
sandeep atluri
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

i have compiled a .java file and its compiled but when i run it, it says that "noclassdefinitionfounderror"
why do i keep getting this message.. please advice . urgent
 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JVM is not able to find out class for that source file, first check where the class was made when the source was compiled and check the classpath also while running the program, When the program runs it should look into the path where the class was made while compiling.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12086
29
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you post the FULL text of the error message? it should tell you WHAT class it can't find. This is probably a classpath issue, but how to resolve it may depend on what class you can't find, where it is, and where you are running java from...
 
Petrus Pelser
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at PATH and CLASSPATH
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic