"java Hello" Problem
- From: "buts101" <Ashish.Batajoo@xxxxxxxxx>
- Date: 19 Jan 2007 01:49:19 -0800
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
Plz tell me what is the error and how can i run that and other class
file.
Waiting for quick reply
Kind Regards,
Buts101
.
- Follow-Ups:
- Re: "java Hello" Problem
- From: Lothar Leidner
- Re: "java Hello" Problem
- From: Alex Hunsley
- Re: "java Hello" Problem
- From: Andrew Thompson
- Re: "java Hello" Problem
- Prev by Date: Re: How to count duplicate items in ArrayList?
- Next by Date: "java Hello" Problem
- Previous by thread: getting xml structure in java
- Next by thread: Re: "java Hello" Problem
- Index(es):
Relevant Pages
|