You should run it with "java hello" only not "java hello.class"

jack

*********** REPLY SEPARATOR  ***********

On 6/14/00 at 3:39 PM Orlando Andico wrote:

>$ /opt/jdk1.2.2/bin/java hello.class
>Exception in thread "main" java.lang.NoClassDefFoundError: hello/class
>
>I'm writing a simple "hello" program (well, a simple JDBC "hello"
>program). I have zero Java expertise, just a lot of self-confidence (or
>arrogance) because I go, "this looks just like C++ and Perl, only the
>compiler is stricter."
>
>My program really SHOULD work (it's a ripoff of typical "hello" Java
>programs and compiles perfectly, right down to the Oracle JDBC Thin
>classes) but I get the above error when I run it. Think it's Java2
>related?
>
>
>---------------------------------------------------------------------
>Orlando Andico <[EMAIL PROTECTED]>       POTS Phone: +63   (2) 937-2293
>Mosaic Communications, Inc.            GSM Mobile: +63 (917) 531-5893
>Any sufficiently perverted technology is indistinguishable from Perl.
>
>
>-
>Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
>To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]




-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to