aspose file tools
The moose likes JDBC and the fly likes JDBC and Cloudscape Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "JDBC and Cloudscape" Watch "JDBC and Cloudscape" New topic
Author

JDBC and Cloudscape

Jodie Anderson
Greenhorn

Joined: Feb 08, 2002
Posts: 2
Hi,
I installed J2EE, JDK1.3, set the path for J2EE_PATH to point to the j2ee bin directory, and JAVA_HOME to point to the directory where JDK1.3.1 is installed.
When I run the following basic program, I get the output of "null".
Being new to both technologies, I am unsure why.
Any ideas would be great!
import java.sql.*;
public class Exercise2_1 {
static String driver = "COM.cloudscape.core.JDBCDriver";
static String url = "jdbc:cloudscape:SimpleDB;create=true";
public static void main(String[] args) {
try{
Class.forName(driver).newInstance();
System.out.println("Loaded driver");
Connection conn=DriverManager.getConnection(url);
System.out.println("Connected to database");
conn.close();
System.out.println("Closed connection");
}
catch(Throwable e)
{System.err.println(e.getMessage());}
}
}
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JDBC and Cloudscape
 
Similar Threads
JDBC MySQL Driver Connection
Connecting to a remote mysql database
Can't connect to Access database using Cloudscape
java jdbc
JDBC Driver error