Re: "java Hello" Problem



buts101 schrieb:
Hello there,
I wrote thise helloworld code in java as Hello.java

----------------------------
public class Hello {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
------------------------------
Then i compiled it with
->javac Hello.java

It compilers normally,no error showned

I run the Hello.class file as

->java Hello
Then i get this error message:
->Exception in thread "main" java.lang.NoClassDefFoundError: hello

You named your class "Hello" (not ("hello").

Regards,

Lothar Leidner
.



Relevant Pages