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

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

问题描述

我正在使用JDBC连接到我的微软访问数据库。
当我尝试连接到数据库时,我得到以下异常:

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:[Microsoft] [ ODBC驱动程序管理器]指定的DSN包含驱动程序和应用程序之间的体系结构不匹配

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

我正在使用64位Windows 7,而且我正在使用eclipse这也是64位版本我的数据库是一个微软访问数据库,似乎驱动程序是一个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.

任何帮助如何解决这个问题将不胜感激。

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

推荐答案

查看访问权限2010 redist

Check out the access 2010 redist

Microsoft Access数据库引擎2010可重新分发

此下载将安装一组可由非Microsoft Office应用程序使用的组件从Microsoft Access 2010(mdb和accdb)文件以及Microsoft Excel 2010(xls,xlsx和xlsb)文件中读取数据并向Office 2010系统文件写入数据的阳性。还支持与文本文件的连接。
为应用程序开发人员安装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天全站免登陆