Page 1 of 1

i cannot run java!!

Posted: Sun Feb 22, 2004 8:35 pm
by bnguyen25
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.classloader
at java.net.urlclassloader
at java.net.laucnher



i been trying for hours but cant seem to fix the problem , help thanks

Posted: Sun Feb 22, 2004 8:56 pm
by talleyrand
I'll wager hello is not the wrong name. The name of the file is case sensitive, even if the underlying OS is not case sensitive. In other words, rename the file to Hello.java and see where that gets you.

Posted: Sun Feb 22, 2004 9:05 pm
by bnguyen25
OMG , problem solved!

thanks :lol:

so happy