Re: "java Hello" Problem
- From: Lothar Leidner <lothar.leidner@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 19 Jan 2007 14:32:24 +0100
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
.
- Follow-Ups:
- Re: "java Hello" Problem
- From: Lew
- Re: "java Hello" Problem
- References:
- "java Hello" Problem
- From: buts101
- "java Hello" Problem
- Prev by Date: Re: A Site for u
- Next by Date: Re: java
- Previous by thread: Re: "java Hello" Problem
- Next by thread: Re: "java Hello" Problem
- Index(es):
Relevant Pages
|