Oracle Connection in Java

[b][red]This message was edited by pac at 2005-10-9 15:44:4[/red][/b][hr]

I am attempting to connect to Oracle and it seems I am missing a package, which I cannot find. Please could someone let me know if I am correct and if so where I can get it from,

Error: Package oracle.jdbc.driver does not exist.

Code: DriverManager.registerDriver
(new oracle.jdbc.driver.OracleDriver());
con = DriverManager.getConnection("I have this set to what I need");

I have imported:

import java.util.*;
import java.sql.*;

Looked at other sources and added the Oracle ojdbc14.jar file to the class path and where i need JAR files in my IDE. It seems that this has no affect!



Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!