I'm trying to get information from a MS Access database using Java.
First, I added ODBC from here
C:\Windows\SysWOW64\odbcad32.exe
since I'm working on Windows 7.
and then , I used this code
String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
Class.forName(driver);
String db = "jdbc:odbc:DataSource";
con = DriverManager.getConnection(db);
But I got this error
[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application
after googling this error, I think the problem is that I'm working on Windows 7 64-bit and MS Office 32-bit. The question is how can I solve this problem without having MS Office 64-bit?
Thank you.