问题
java.sql.SQLException: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application
I get the following error when I try to connect to my Microsoft Access database from an eclipse project using jdbc.
I am using 64bit windows and microsoft office 2007.
any help on this matter would be great.
回答1:
Access 2010 has 64 bit drivers and can be downloaded http://www.microsoft.com/downloads/details.aspx?FamilyID=C06B8369-60DD-4B64-A44B-84B371EDE16D&displaylang=en
回答2:
64bit applications can't play with the 32bit Jet (Access) drivers. You need to fix this.
Two ways:
The hard, crazy cat lady way is to route the queries through something that can go both ways, such as installing the 32bit version of SQL Server Express, writing stored procedures in it to query the Access database, and then call the stored procedures from your 64bit application.
The easy, "correct", but potentially buggy for a short while way is to download and install the beta version of the Office 2010 Jet drivers (redistributable), which finally support 64bit mode. They can be downloaded from Microsoft here.
来源:https://stackoverflow.com/questions/2818491/is-there-a-64bit-driver-for-microsoft-access