i can compile java but cannot run here the message:
Exception in thread "main" java.lang.nosuchmethoderror: Main
why is it doing that?
help thanks!
Search found 3 matches
- Sun Feb 29, 2004 8:47 pm
- Forum: Java
- Topic: i cannot run java!
- Replies: 1
- Views: 649
- Sun Feb 22, 2004 9:05 pm
- Forum: Java
- Topic: i cannot run java!!
- Replies: 2
- Views: 564
- Sun Feb 22, 2004 8:35 pm
- Forum: Java
- Topic: i cannot run java!!
- Replies: 2
- Views: 564
i cannot run java!!
I create the program called hello
class Hello {
public static void main( String args[] ) {
System.out.println( "hello world" );
}
}
compile is fine but i cannot run in textpad
error i get: Exception is "main" no classdefound error....... hello ( wrong name) and bunch of error
at Java.net ...
class Hello {
public static void main( String args[] ) {
System.out.println( "hello world" );
}
}
compile is fine but i cannot run in textpad
error i get: Exception is "main" no classdefound error....... hello ( wrong name) and bunch of error
at Java.net ...