jQuery in Action, 2nd edition*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Error" Watch "Error" New topic
Author

Error

Neha Sawant
Ranch Hand

Joined: Oct 11, 2001
Posts: 204
Hi,
When i run a particular program it gets compiled but at Runtime i am getting NoClassDefFoundError
What error is this and how do i get rid of this.
Regards
Neha


nss
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
It means that your JVM needs to load a class that the classloader cannot find within the given CLASSPATH. Pay special attention in setting that variable.
If all your classes are in the same directory try giving the "-classpath ." option to java or javac.
HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
Neha Sawant
Ranch Hand

Joined: Oct 11, 2001
Posts: 204
Thanx Valentin,
i got my mistake and it is now working perfectly fine
 
 
subject: Error
 
Similar Threads
Tomcat & MS Active Directory
Encapsulation and getter&setter methods
i have a Errors in Hibernate Query
ServletContext
File not found error