This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
On the Executing above code i get the following error
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.cluster.UpdatableResultSetDemo.main(UpdatableResultSetDemo.java:28)
I'd say the JDBC driver isn't on your class path. And please post only the code necessary to reproduce the problem... It makes things easier :)
Arun raghvan
Ranch Hand
Joined: Aug 22, 2010
Posts: 75
posted
0
Oh! i found classes12.jar file is not in folder .. i included now it's working. but i get the following error.(ok David Newton).
java.sql.SQLException: Invalid operation for read only resultset: updateString
java.sql.SQLException: Invalid operation for read only resultset: updateString
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.driver.BaseResultSet.updateString(BaseResultSet.java:353)
at com.cluster.UpdatableResultSetDemo.main(UpdatableResultSetDemo.java:49)