File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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
Deepak Chopra
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: 11923

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
jQuery in Action, 3rd edition
subject: help for "noclassdefinitionerror"
It's not a secret anymore!