jdbc连接数据库出现的问题# Java - 爪哇娇娃
c*n
1 楼
import java.sql.*;
public class MakingTheConnection {
public static void main(String[] args) {
try {
Class.forName("COM.cloudscape.core.JDBCDriver");
String sourceURL = "jdbc:cloudscape:C:/Music";
Connection databaseConnection =
DriverManager.getConnection(sourceURL);
System.out.println("Connection established successfully!");
databaseConnection.close();
}
catch (ClassNotFoundException cnfe) {
System.err.println(cnfe);
}
catch (SQLException sqle) {
System.err.println(sqle);
}
}
}
就这么一个小程序,我在clas
public class MakingTheConnection {
public static void main(String[] args) {
try {
Class.forName("COM.cloudscape.core.JDBCDriver");
String sourceURL = "jdbc:cloudscape:C:/Music";
Connection databaseConnection =
DriverManager.getConnection(sourceURL);
System.out.println("Connection established successfully!");
databaseConnection.close();
}
catch (ClassNotFoundException cnfe) {
System.err.println(cnfe);
}
catch (SQLException sqle) {
System.err.println(sqle);
}
}
}
就这么一个小程序,我在clas