File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes problem running JDK 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 » Java » EJB and other Java EE Technologies
Bookmark "problem running JDK" Watch "problem running JDK" New topic

problem running JDK

Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
I seem to have trouble running my classes. I compile a class, but when I run it, I get error message: "java.lang.NoClassDefFoundError". I get this error even with classes that I know for sure worked before. All of the sudden I started to get this message. What's wrong here?

All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson
Victor Htet
Ranch Hand

Joined: Apr 09, 2000
Posts: 70
Possible causes of your problem.
1) you might have changed your classpath.
2) if you declare package statement in your class coding, you need to invoke with qualified class name (full package name + class name).
3) do not put ".class" when you run with Java.exe command.
Hope it helps.

wood burning stoves
subject: problem running JDK
Similar Threads
Annoying DOS window
Websphere Application Developer
Inner Class method acess
Overriding doubt?
Problem with strus and IAS 6.5