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

标签 java database ms-access datasource jdbc-odbc

我有一个使用access数据库的java应用程序。我的电脑有 64 位操作系统、64 位 Microsoft Office 和 64 位 JDK。我什至安装了 Access 数据库引擎 x64。基本上所有内容都是 64 位的。

在控制面板中,我的目标是C:\Windows\SysWOW64\odbcad32.exe,并且我指定从:%windir%\SysWOW64开始。现在的问题是我不断收到此错误消息。

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

有人知道导致此错误的原因吗?

最佳答案

好的,在这种情况下,如果您的 Java 应用程序运行 64 位,则您将需要 64 位驱动程序。我相信以下链接有 64 位下载:

Microsoft Access Database Engine 2010 Redistributable

关于java.sql.SQLException :[Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12674133/

相关文章:

database - Rethinkdb 按包含文本进行完整搜索

ms-access - 我希望从 ms-access 2013 数据库中的所有表单、报告和模块导出 vba 源代码

Java简单helloworld AES加密解密

java - Java 中的颜色检测器

mysql - 将具有多列的表连接到单个列中

sql-server - 如何在链接到 SQL Server 的 Microsoft Access 中使用 Active Directory 登录?

ms-access - RODBC 和 Access - 加载数据

java - 在 Parse android API 上调用 findInBackground() 时,我们会在哪个线程上得到回调

java - 尝试在 fragment 选项卡中添加 map 时出错

mysql - 将连接查询转换为嵌套查询