lang.NoClassDefFoundError: java/sql/Savepoint
Posted by: preeti.sharma
Date: April 05, 2005 10:36PM


When I am trying to connect to the mySQL database I am getting the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Savepoint
at com.mysql.jdbc.NonRegisteringDriver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(
at ConnectDB.main(, Compiled Code)

This is how I am connecting to it through a java application:
try {

} catch (Exception ex) {
System.out.println("Error in loading driver");
try {
conn = DriverManager.getConnection("jdbc:mysql://localhost/test?user=root&password=root");

Any help would be highly appreciated.


Options: ReplyQuote

Written By
lang.NoClassDefFoundError: java/sql/Savepoint
April 05, 2005 10:36PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.