Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OracleDriver not found

15904Sep 19 2007 — edited Sep 19 2007
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 17 2007
Added on Sep 19 2007
1 comment
316 views