>>>>> "Carl" == Carl Fink <[EMAIL PROTECTED]> writes:

Carl> I started to learn Java back when I was running Slink.  I didn't
Carl> get past chapter 3 of the book, but everything worked.

Carl> Why not now?

Carl> I install Jikes.  I start Sun's tutorial and enter
Carl> HelloWorldApp.java per the web site.  I compile it with javac.
Carl> Seems OK.  Then I try

Carl>   java HelloWorldApp.class

I believe you need to drop the ".class".

# java HelloWorldApp.class
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp/class
# java HelloWorldApp
Hello World!

-- 
Hubert Chan <[EMAIL PROTECTED]> - http://www.uhoreg.ca/
PGP/GnuPG key: 1024D/124B61FA
Fingerprint: 96C5 012F 5F74 A5F7 1FF7  5291 AF29 C719 124B 61FA
Key available at wwwkeys.pgp.net.   Encrypted e-mail preferred.

Attachment: msg04508/pgp00000.pgp
Description: PGP signature

Reply via email to