B
buts101
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
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