Posted By:
Bjornie_Wikstroem
Posted On:
Sunday, June 2, 2002 03:09 PM
Hi! I'm having trouble with running classes in Linux. I do like this: $ javac Test.java $ java Test I get the errormessage: Exception in thread "main" java.lang.NoClassDefFoundError: Test My Test.java: public class Test { public static void main ( String[] args ) { System.out.println ( "Hello World!" ); } } As you can see there's noting special about my class, just a simple test-class. What could be wrong? Best regards, Bjornie
More>>
Hi!
I'm having trouble with running classes in Linux. I do like this:
$ javac Test.java
$ java Test
I get the errormessage:
Exception in thread "main" java.lang.NoClassDefFoundError: Test
My Test.java:
public class Test {
public static void main ( String[] args ) {
System.out.println ( "Hello World!" );
}
}
As you can see there's noting special about my class, just a simple test-class. What could be wrong?
Best regards,
Bjornie
<<Less