驱动程序和应用程序之间的结构不匹配? [英] architecture mismatch between the Driver and Application?

查看:211
本文介绍了驱动程序和应用程序之间的结构不匹配?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用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

<一个href="http://www.microsoft.com/downloads/details.aspx?FamilyID=C06B8369-60DD-4B64-A44B-84B371EDE16D&displaylang=en"相对=nofollow> 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!

这篇关于驱动程序和应用程序之间的结构不匹配?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆