Lazarus
Lazarus

Reputation: 49

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

I have a java application that uses access database. My PC has 64-bit Operating System, 64-bit Microsoft Office, and 64-bit JDK. I even installed the Access Database Engine x64. Basically everything on it is 64-bit.

In control panel, my target is C:\Windows\SysWOW64\odbcad32.exe and I specified that start in: %windir%\SysWOW64. The problem now this error message that I keep on getting.

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

Does any one know what is causing this error?

Upvotes: 2

Views: 2183

Answers (1)

Hariom Ahlawat
Hariom Ahlawat

Reputation: 51

OK, in that case you will need 64-bit drivers if your Java app is running 64-bit. I believe there is a 64-bit download at the below link:

Microsoft Access Database Engine 2010 Redistributable

Upvotes: 2

Related Questions