*
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "HELP!!!! - java.lang.NoClassDefFoundError" Watch "HELP!!!! - java.lang.NoClassDefFoundError" New topic
Author

HELP!!!! - java.lang.NoClassDefFoundError

wai meng
Greenhorn

Joined: Sep 16, 2001
Posts: 4
Hi All,
I am a newbie to Java and I keep getting the error
java.lang.NoClassDefFoundError
when i run my program...
public class A{
public static void main(String[] argv) {
System.out.println("AAAA");
}
}
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,
wmeng72


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.

Bosun


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HELP!!!! - java.lang.NoClassDefFoundError