Two Laptop Bag
The moose likes Beginning Java and the fly likes help for Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "help for "noclassdefinitionerror"" Watch "help for "noclassdefinitionerror"" New topic
Author

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
Bartender

Joined: Oct 02, 2003
Posts: 9956
    
    6

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


Never ascribe to malice that which can be adequately explained by stupidity.
Petrus Pelser
Ranch Hand

Joined: Feb 20, 2006
Posts: 132
Have a look at PATH and CLASSPATH
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: help for "noclassdefinitionerror"
 
Similar Threads
OutOfMemoryError in java swing application
ClassPath problem
Annonymous Inner class problem
Compiling servlet [was: HTTP Status 404 - Servlet Login is not available]
Iimplicit cast