-1

由于我已经在 Windows 7 64 位上安装了 MS Office 2007,并且我还安装了 jdk 32 和 64 位,但是当我尝试连接到 MS Access 并且我已经创建了系统 DSN 时,代码会抛出上述异常

4

2 回答 2

0

Java code is not bit specific and as "duffymo" says there is no ODBC bridge in Java. The ODBC bridge you are using is calling the MS ODBC driver manager with the same bit size as the ODBC bridge. The error is comming back because the ODBC driver the driver manager is trying to open is of a different size.

To resolve this you simply need to make sure the the ODBC Bridge is of the same bit size as the MS Access ODBC driver is on your machine.

于 2013-04-29T13:16:23.827 回答
0

Java 64 位代码库中没有 ODBC 桥驱动程序 DLL,所以这可能就是问题所在。您要么必须购买可以连接到 Access 或切换数据库的 JDBC 驱动程序。Derby 与 JDK 6 及更高版本捆绑在一起。也许这将满足您的需求。

于 2012-06-04T12:14:34.497 回答