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

Hi,

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(NonRegisteringDriver.java
:263)
at java.sql.DriverManager.getConnection(DriverManager.java:450)
at java.sql.DriverManager.getConnection(DriverManager.java:152)
at ConnectDB.main(ConnectDB.java, Compiled Code)

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

Class.forName("com.mysql.jdbc.Driver").newInstance();
} 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.

Regards
Preeti

Options: ReplyQuote


Subject
Written By
Posted
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.