我寫這個代碼,但在運行時錯誤時拋出被捕獲並說Java連接使用的MS Access
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
問題是什麼?
String database="jdbc:odbc:Driver={Microsoft Access Driver(*.accdb)};DBQ=C:/Users/Amitav/Desktop/Database1.accdb;";
Connection con=DriverManager.getConnection(database,"","");
嘗試使用ucanaccess而不是odbc只要按照這個http://stackoverflow.com/questions/21955256/manipulating-an-access-database-from-java-without-odbc][1] – user3808015 2014-09-11 09:54:25