aspose file tools*
The moose likes JDBC and the fly likes ClassNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "ClassNotFoundException" Watch "ClassNotFoundException" New topic
Author

ClassNotFoundException

Arun raghvan
Ranch Hand

Joined: Aug 22, 2010
Posts: 75
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)

and Can anyone specify a good book for jdbc !?

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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
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)

but


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ClassNotFoundException