Java compile error creating new JDBC OracleDriver
Posted on 2001-07-26
I need to query an Oracle database table via a java bean. In the middle of the page 4 of ?Readme? for JDBC it says "Your JDBC program must register the Oracle driver. . . make sure that the following statement is executed. . .DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver ());"
I put that line in the bean script and when I tried to compile it I got:
nameBean.java:25: cannot resolve symbol
symbol : class OracleDriver
Location: package driver
DriverManager.registerDriver (new oracle.jdbc.driver .[a carrot points to this dot]OracleDriver())
My classpath leads to ?classes12.zip?, and within that package are two files called ?OracleDriver.class?. I also tried setting classpath to ?classes111.zip? that has only one ?OracleDriver.class?.
I tried compiling a demo script that came with the JDBC (ResultSet1.java) and got the same error.
(I am new to this forum, as well as to Java so please forgive me if this is something simple I should be able to figure out for myself.)