In your classpath, you also have to include the name of the zip/jar file.

So maybe, your classpath is something like :

......<the path where both these files are>/jconn2.jar;

To include classes111.zip, change it to :

......<path>/jconn2.jar;<path> /classes111.zip;

Sandesh

¸ßÖ¾Ó wrote:

thanks a lot!But I had put the jconn2.jar and classes111.zip to the same directory that is the "lib" of JavaWebServer2.0. jconn2.jar had been found,Oracle's classes111.zip hadn't been found??? 
----- Original Message -----
·¢¼þÈË: Liwen Chen
ÊÕ¼þÈË: [EMAIL PROTECTED]
·¢ËÍʱ¼ä: 2000Äê5ÔÂ15ÈÕ 15:47
Ö÷Ìâ: Re: sos:oracle's jdbc?
 One possible reason is, system cannot find the driver you specified. try to check your classpathso that the driver can be found. liwen
----- Original Message -----
Sent: Wednesday, May 17, 2000 2:25 PM
Subject: sos:oracle's jdbc?
 hi all:    I'm using jdbc in servlet for oracle(classes111.zip),sybase(jconnect5.2;jconn2.jar).    It had successed when I use com.sybase.jdbc2.jdbc.SybDriver to connection to SYBASE database.    But failed with oracle.jdbc.driver.OracleDriver.    The reason is that the statement "Class.forname("oracle.jdbc.driver.OracleDriver")" is unavailable.    I want to Why sybase ok,but oracle error! 

Reply via email to