This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes Class connection not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Class connection not found" Watch "Class connection not found" New topic

Class connection not found

L. Riley

Joined: Mar 20, 2001
Posts: 28
I am trying to display records from a Cloudscape database. When my page tries to display I get an error message that ends with 61: Class connection not found.
I have checked my classpath and I am not sure where to look from here...
Will someone give me a hint what might be wrong here?
Thank you.
Lee Wallen

Joined: Jul 14, 2001
Posts: 10
make sure that you import java.sql.* or java.sql.Connection.
import java.sql.*;
public class TestConn {
public static void main (String args []) {
try {
String dbUrl = args[0];
String driverName = args[1];

Connection con =
DriverManager.getConnection(dbUrl, "", "");
System.out.println("conn.isClosed = " + conn.isClosed());
} catch (Exception e) {
[This message has been edited by Lee Wallen (edited July 15, 2001).]
I agree. Here's the link:
subject: Class connection not found
jQuery in Action, 3rd edition