I'm getting an error while trying to make a JDBC connection to an Access 2007 database.
Environment details : Windows 7 64-bit, JRE 7 64-bit, Access 2007 32-bit
:
driver = "sun.jdbc.odbc.JdbcOdbcDriver";
url = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ="+database+";";
DriverManager.getConnection(url, dbusername, dbpassword);
I'm getting the following exception
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified