[問題] JDBC的問題
請問一下,當我要用jdbc 來接資料庫的時候
, try {
Class.forName("easysoft.sql.jobDriver");
Properties props = new Properties();
props.put("logonuser", "NCS");
props.put("logonpassword", "ncs2007");
props.put("useUnicode", "true");
con = DriverManager.getConnection(dbURL, props);
}
catch (Exception err) {
System.out.println( "Error: " + err );
}
卻出現java.lang.ClassNotFoundException:easysoft.sql.jobDriver
表示classloader cannot locate the driver class,我是去easysoft.com下載driver
要來連接microsoft office access的,可是一直不能load這個driver.
請問是path設定不正確嗎?還是哪裡可能有問題,謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 65.190.207.14
推
12/21 14:39, , 1F
12/21 14:39, 1F
推
12/21 14:55, , 2F
12/21 14:55, 2F