OracleDriver not found
15904Sep 19 2007 — edited Sep 19 2007Hi,
I am quite sure this has been answered before, but I am a realtive newbie Java developer. I am getting "OracleDriver not found" when compiling this code in JDev 10.1.3:
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import oracle.jdbc.OracleDriver; // error on this line!
public class test {
public static void main (String[] args) throws SQLException {
Connection conn = null;
try {
DriverManager.registerDriver (new OracleDriver());
conn = DriverManager.getConnection(thinConnectionURL, uid, pwd);
} catch (SQLException e) {
System.err.println("Error making database connection:");
e.printStackTrace();
}
}
}
This code compiles outside JDev. I have tried adding the JAR files ojdbc14.jar and orai18n.jar and the directories they reside in as Default Project properties, but the compile continues to fail.
What am I missing here?
Thanks.
Ron Reidy