Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Oracle & JDBC
Hi,
I am new to JDBC.
when i run it, the error message is :
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
where i can download Oracle JDBC driver?
public int dbTest() {
String _driver = "oracle.jdbc.driver.OracleDriver"; String _url = "jdbc:oracle:thin:system/manager_at_server:1521:sid";
try{
// Load the Driver
Class.forName (_driver);
// Make Connection
DriverManager.getConnection(_url); } catch (Exception e) {
e.printStackTrace(); System.out.println("connection error"); System.out.println(e.toString()); return 0;
Thanks in advance Received on Sun Dec 10 2000 - 20:54:13 CST