wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes help for Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "help for "noclassdefinitionerror"" Watch "help for "noclassdefinitionerror"" New topic

help for "noclassdefinitionerror"

sandeep atluri
Ranch Hand

Joined: Apr 19, 2007
Posts: 42
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

Sandeep Atluri
Sunny Jain
Ranch Hand

Joined: Jul 23, 2007
Posts: 433

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.

Thanks and Regards,
SCJP 1.5 (90%), SCWCD 1.5 (85%), The Jovial Java, java.util.concurrent tutorial
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11154

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...

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Petrus Pelser
Ranch Hand

Joined: Feb 20, 2006
Posts: 132
Have a look at PATH and CLASSPATH
wood burning stoves
subject: help for "noclassdefinitionerror"
Similar Threads
Annonymous Inner class problem
ClassPath problem
Iimplicit cast
OutOfMemoryError in java swing application
Compiling servlet [was: HTTP Status 404 - Servlet Login is not available]