驱动程序和应用程序之间的结构不匹配?驱动程序、应用程序、不匹配、结构

2023-09-07 22:11:34 作者:拿根辣条砸死你

我使用JDBC连接到我的Microsoft Access数据库。 当我尝试连接到数据库,我得到以下异常:

I am using JDBC to connect to my microsoft access database. I get the following exception when I try to connect to the database:

值java.sql.SQLException:[微软] [ODBC驱动程序管理器]指定的DSN包含了驱动程序和应用程序

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

我是用64位的windows7,而我使用的Eclipse这也是一个64位版本,我的数据库是一个Microsoft Access数据库,似乎司机是一个32位的驱动程序,这是造成这个问题。

I am using 64bit windows7, and I am using eclipse which is also a 64bit version My database is a microsoft access database and it seems that the driver is a 32bit driver which is causing the problem.

在如何解决这个问题将是极大的AP preciated任何帮助。

Any help on how to solve this problem would be greatly appreciated.

推荐答案

退房Access 2010的REDIST

Check out the access 2010 redist

Microsoft Access数据库引擎2010可再发行

这个下载将安装一组可以使用非Microsoft Office应用程序读取和写入数据到Office 2010的系统文件,如Microsoft Access 2010(MDB和ACCDB)文件和Microsoft Excel 2010(XLS组件,XLSX,并XLSB)文件。还支持连接到文本文件。 ODBC和OLEDB驱动程序安装的应用程序开发人员在开发自己的应用程序连接到Office文件格式的使用。

This download will install a set of components that can be used by non-Microsoft Office applications to read data from and write data to Office 2010 system files such as Microsoft Access 2010 (mdb and accdb) files and Microsoft Excel 2010 (xls, xlsx, and xlsb) files. Connectivity to text files is also supported. ODBC and OLEDB drivers are installed for application developers to use in developing their applications with connectivity to Office file formats.

这应该满足您的需求。祝你好运!

This should suit your needs. Good luck!