> 
> $ /opt/jdk1.2.2/bin/java hello.class 
> Exception in thread "main" java.lang.NoClassDefFoundError: hello/class
>
hmmm. basically, this is looking for a class named hello. i do not know
the exact error but you could try checking if the class name defined in
your code is the same as the filename of the java class. and you should
run it simply by doing "java hello". this assumes that your java class is
"hello.class" and your java source is "hello.java" and you class
definition is "public class hello". and yes you may have forgotten the
public. hehehe.
 
> 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]
> 

 
---------------------
[EMAIL PROTECTED]
 
"I may kid around about drugs, but really, I take them seriously."
- Doctor Graper
 


-
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