Where ever your Oracle Driver is there ...Set that location in your class path. make sure all the classes needed by ur application including the current directory are in the class path .U can set the classpath once and for all using 
ControlPanel--->System---->Environment...and set the Environment varialbles(CLASSPATH in your case) there
 
 
 
 
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Michael
Sent: Thursday, March 23, 2000 10:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Exception

I have run into a similar problem in the past, connected to windows NT; is this your operating system?
 
----- Original Message -----
Sent: Thursday, March 23, 2000 10:31 PM
Subject: Exception

Hello all...
I have a problem nich...
 
everytime I try to launch my class with this command:
D:\Chart\coba1>java oracle
this message always occurs:
Exception in thread "main" java.lang.NoClassDefFoundError: oracle
 
and if I change the command into:
D:\Chart\coba1>java -classpath "." Oracle
this message occurs:
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/driver/OracleDriver
        at Oracle.connect(Oracle.java:30)
        at Oracle.main(Oracle.java, Compiled Code)
 
and, if I change the command into:
D:\Chart\coba1>java -classpath ".;c:\classes" Oracle
my system hangs.... it doesn't show any error message or anything.
 
please guys... do you know what's wrong?
I have put all my jar files (after I extract them) into one directory: c:\classes ('cause I was so desperate)... :)
thanks for your attention...
 
-Vera-

Reply via email to