K
kikiyang
Unregistered / Unconfirmed
GUEST, unregistred user!
我在win98下用resin1.3做appserver,在我的servlet里使用了oracle的jdbc驱动,
我在autoexec.bat里写了 set classpath=c:/jdbc/classes111.zip(确实是在这个目录哦)
我的连接数据库代码如下:
private java.lang.String dbUrl = "jdbcracle:thin192.9.100.144:1521ra815";
private final java.lang.String driver = "oracle.jdbc.driver.OracleDriver";
private java.sql.Connection conn;
conn = DriverManager.getConnection(dbUrl, dbUser, dbPassWd);
可总是报
Exception:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
java.sql.SQLException: No suitable driver
的错误,到底是怎么回事?
我在autoexec.bat里写了 set classpath=c:/jdbc/classes111.zip(确实是在这个目录哦)
我的连接数据库代码如下:
private java.lang.String dbUrl = "jdbcracle:thin192.9.100.144:1521ra815";
private final java.lang.String driver = "oracle.jdbc.driver.OracleDriver";
private java.sql.Connection conn;
conn = DriverManager.getConnection(dbUrl, dbUser, dbPassWd);
可总是报
Exception:java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
java.sql.SQLException: No suitable driver
的错误,到底是怎么回事?