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!!!! - java.lang.NoClassDefFoundError 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!!!! - java.lang.NoClassDefFoundError" Watch "HELP!!!! - java.lang.NoClassDefFoundError" New topic

HELP!!!! - java.lang.NoClassDefFoundError

wai meng

Joined: Sep 16, 2001
Posts: 4
Hi All,
I am a newbie to Java and I keep getting the error
when i run my program...
public class A{
public static void main(String[] argv) {
When I run java A.... I get this error but when I copied the A.class file to another computer.. it runs fine.... what could be the problem??? Thanks in advance..

Cheers,<BR>Wai Meng
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
The JVM is not finding that class "A". Verify your classpath settings, also verify that you are spelling the class correctly when trying to run.


So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: HELP!!!! - java.lang.NoClassDefFoundError
It's not a secret anymore!