cannot access class oracle.jdbc.driver.OracleDriver [message #92762] |
Sun, 09 January 2005 12:17 |
rasha
Messages: 1 Registered: January 2005
|
Junior Member |
|
|
hi
this error appear what should i do?
Error(83,54): cannot access class oracle.jdbc.driver.OracleDriver; file oraclejdbcdriverOracleDriver.class not found
i use oracle database 10g and my code to connect to database is
public class Class1
{
public static void main (String args [[]]) throws SQLException
{
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
DriverManager.getConnection("jdbc:oracle:thin:@computerorcl","fcis", "fcis");
Statement stmt = conn.createStatement ();
ResultSet rset = stmt.executeQuery ("SELECT ROLE_ID FROM ROLE");
while (rset.next ())
System.out.println (rset.getString (1));
rset.close();
stmt.close();
conn.close();
}
}
|
|
|