Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 08-01-2006, 06:19 PM   #1 (permalink)
patonb's Avatar
 
Master Techie

Join Date: Jan 2005

Location: In Gov't Regulated Cubical

Posts: 2,759

patonb has a spectacular aura aboutpatonb has a spectacular aura about

Default Basic Java Help

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
patonb is offline  
Old 08-01-2006, 07:49 PM   #2 (permalink)
patonb's Avatar
 
Master Techie

Join Date: Jan 2005

Location: In Gov't Regulated Cubical

Posts: 2,759

patonb has a spectacular aura aboutpatonb has a spectacular aura about

Default

And GOOGLE scores another victory.........

Fixed
__________________
Intel Q6600 g0 @ 3.2Ghz Turniq 120 Heatsink BFG 260 OC MaxCore (core 216) + xfx GTX 260 (core 216)
2x2gb OCZ Platinums XFX 680i motherboard Silverstone DA700 Antec 900
16,412 3dmark06 score


Foldie = e2180 Asus pq5-n SLI 8800gt T-rad cooler (710/1836/1010) 1Gig RAM
TOTAL
patonb is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On