|
-
March 16th, 1999, 06:23 PM
#3
Learning Java
I am trying to learn the language Java, but am having problems. I entered the following Java program:
class Example1 {
public static void main(String args[]) {
System.out.println("This is the output from Example1" ;
}
}
I saved the program as Example1.java, compiled it: javac Example1.java and the Example1.class file was produced, but
when I entered:
java Example1
I got the following error message:
Exception in thread "main" java.lang.NoClassDefFoundError: Example1
I am using JDK1.2. My path statement points to its bin folder. Any help as to why I am getting this error message or
what I am doing wrong would help. I am using the book Teach Yourself Java by Joesph O'Neil. The above example came
directly out of his book.
Thanks...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|