我在哪里可以下载与 JDK 1.5 兼容的 DB2 JDBC 驱动程序? [英] Where do I download JDBC drivers for DB2 that are compatible with JDK 1.5?

查看:23
本文介绍了我在哪里可以下载与 JDK 1.5 兼容的 DB2 JDBC 驱动程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在哪里可以下载与 JDK 1.5 兼容的 DB2 JDBC 驱动程序?它们似乎非常难以捉摸,我在 IBM 的网站上遇到了许多死胡同.我设法找到了与 IBM Data Studio 等工具捆绑在一起的驱动程序版本.不幸的是,这些版本针对的 JVM 要么太现代(JDK 1.6,导致类版本错误),要么太古老(JDK 1.2,导致在 JDK 1.5 上运行时出现已知错误).

Where do I download JDBC drivers for DB2 that are compatible with JDK 1.5? They seem to be very elusive and I hit many dead-ends at IBM's website. I managed to find versions of the driver bundled with some tools such as IBM Data Studio. Unfortunately, these versions either target a JVM too modern (JDK 1.6, leading to class version errors) or too ancient (JDK 1.2, leading to known bugs when run on JDK 1.5).

推荐答案

我知道已经晚了,但我最近遇到了这种情况.在浪费了一整天之后,我终于找到了解决方案.我很惊讶我在 oracle 的网站 而这似乎在 IBM 的网站上找不到.

I know its late but i recently ran into this situation. After wasting entire day I finally found the solution. I am suprised that I got this info on oracle's website whereas this seems nowhere to be found on IBM's website.

如果您想使用与 JDK 1.5 或 1.4 兼容的 DB2 JDBC 驱动程序,则需要使用 db2jcc.jar jar,该 jar 位于 SQLLIB/java/ db2 安装文件夹.

If you want to use JDBC drivers for DB2 that are compatible with JDK 1.5 or 1.4 , you need to use the jar db2jcc.jar, which is available in SQLLIB/java/ folder of your db2 installation.

这篇关于我在哪里可以下载与 JDK 1.5 兼容的 DB2 JDBC 驱动程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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