1
votes

I've been trying to connect to a MS Access 2007 database through JDBC (JDK is 64-bit under Windows 7 64-bit) and I receive the following error:

java.sql.SQLException: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application.

I upgraded Access to 2010, I used odbcad32.exe in Windows\SysWOW64 and downloaded/installed 32-bit Microsoft Access Database Engine 2010 Redistributable (couldn't install the 64-bit MS Access Database Engine 2010 because I currently have 32-bit Office products installed), but I get still the same error.

What can I do to overcome this error?

1

1 Answers

1
votes

As I mention in my other answer here, you need to be running the Java application in a JVM (Java Virtual Machine) with the same "bitness" as the installed version of the Access Database Engine (a.k.a. "ACE"). Since you have the 32-bit version of ACE installed you will need to run the Java application in a 32-bit JVM.