I have just started the Java module of my degree course, and have been following the instructions on the module homepage:
Adding the Java SDK tools to the TextPad menu works fine, and my .java files compile into Class files, but when I come to run them, I get:
- Download JDK 5.0 Update 6 from the Sun website. Save the downloaded executable to disk and then run it. Check that Java is installed by starting a DOS terminal and typing the command "java -version".
- Download TextPad from www.textpad.com. Save the executable to disk and run it after the download is complete. You should find that TextPad has now been added to your Programs menu. We hope to be able to give you a full licence for TextPad before the temporary licence times out.
And this is for something as simple as an 8 line "Hello World" program. Yes my class has the same filename as the class declared in the .java file. This same class worked in the lab earlier, but I'm stumped on getting it to work on my own machine. Running XP Pro SP2.Exception in thread "main" java.lang.NoClassDefFoundError: Welcome
Press any key to continue . . .
Thanks