aspose file tools*
The moose likes JDBC 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
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
Similar Threads
Invaild Cursor State
connecting to ms access database
Android TCP connection
Servlets classes not compiling!.
creating one jdbc configuration file for the entire web applicaton