是db2的jdbc driver 找不到吧。
============================
// Create a properties object.
Properties p = new Properties();
// Set the properties for the connection.
p.put("naming", "system");
// Connect using the properties object.
Connection con = DriverManager.getConnection(
"jdbc:db2:localhost", p );
============================
// Create a properties object.
Properties p = new Properties();
// Set the properties for the connection.
p.put("naming", "system");
// Connect using the properties object.
Connection con = DriverManager.getConnection(
"jdbc:db2:localhost", p );
现在我已经加进去了,但程序依然连不上数据库,能详细说明一下如何才能确保VAJ找到DB2的JDBC驱动吗?在程序头,必须加入哪些包?
我的OICQ:1378805
EMAIL:[email protected]