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

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

问题描述

我正在使用 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: [Microsoft][ODBC Driver Manager] 指定的 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.

任何有关如何解决此问题的帮助将不胜感激.

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

推荐答案

查看 access 2010 redist

Check out the access 2010 redist

Microsoft Access 数据库Engine 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天全站免登陆