So, I'm bored so I've decided to learn somemore programming. Learnt C and Fotran in school 10yrs ago, so I'm trying Java.
Got Suns JDK 1 5 07 and plan/trying to learn useing TextPad, Thanks jaeusm. Don't laugh but I'm usng the book " Teach yorself Java in 21 days."
So I'm writing the Classic 'hello world" program. I input it into textpad,
class HelloWorld {
public static void main (String args[]) {
System.out.println("Hello World");
}
}
compiles........, but when I run it, I get:
Quote:
|
Exception in thread "main"java.lang.NoClassDefFoundError: HelloWorld
|
Its straight off the book so Its syntex correct, but I'm wondering if I've not got the program setup.
Any help is wanted....
Thanks