Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ClassNotFoundException: org.apache.derby.jdbc.ClientDriver

843859Aug 30 2009 — edited Nov 20 2014
Hi friends,


I am doing Exercise basic JDBC functions with a single table


I have started the Java db and it is running fine with message "Server is ready to accept connection on port 1527"


Added Java DB client driver to the classpath by adding the derbyclient.jar from the following location


c:\Program files\glassfish-v2.1\javadb\lib\derbyclient.jar


But I am getting this error when I try to run this


ClassNotFoundException: org.apache.derby.jdbc.ClientDriver
SQLException: No suitable driver found for jdbc:derby://localhost:1527/sample


I done the troubleshoot according to the javapassion tutorial by restart the db server but error is still there.


I am new to this, please any one know where i m doing wrong.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 11 2010
Added on Aug 30 2009
4 comments
1,757 views