• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HELP!!!! - java.lang.NoClassDefFoundError

 
wai meng
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bosun Bello
Ranch Hand
Posts: 1510
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic