On Wed, 14 Jun 2000, Horatio B. Bogbindero wrote:
..
> > 
> > $ /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.

Ok, here's the top of my source code:

[begin code segment]

import java.sql.*;
import java.math.*; 

public class hello {
        public static void main(String[] args) {

                try {
                        Class.forName ("oracle.jdbc.driver.OracleDriver");
                } catch (ClassNotFoundException e) {
                        System.err.println("Exception: " +
                                e.getMessage());
                }

[more snipped]

the error won't go away. I've tried your suggestions but it's still
there.. thanks for all the help in any case.


---------------------------------------------------------------------
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]

Reply via email to