从Java 1.7升级到Java 1.8后,Microsoft JDBC驱动程序不起作用 [英] Microsoft JDBC Driver is not working after upgrade from Java 1.7 to Java 1.8

查看:74
本文介绍了从Java 1.7升级到Java 1.8后,Microsoft JDBC驱动程序不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从Java 1.7升级到Java 1.8后,在构建路径中包含 sqljdbc4.jar (版本4.0)时,出现以下错误.我该如何解决这个问题?

After upgrading from Java 1.7 to Java 1.8, I am getting the below error when having sqljdbc4.jar (version 4.0) in my build path. How can I resolve this problem?

推荐答案

In the details section of the download page for the driver, the Java compliance is listed:

  • 用于SQL Server的Microsoft JDBC驱动程序 4.2 兼容JDBC 4.2,并在Java开发工具包(JDK)版本 5.0、6.0、7.0和8.0 上运行>.

  • The Microsoft JDBC Driver 4.2 for SQL Server is JDBC 4.2 compliant and runs on the Java Development Kit (JDK) version 5.0, 6.0, 7.0, and 8.0.

用于SQL Server的Microsoft JDBC驱动程序 4.1 兼容JDBC 4.0,并在Java开发工具包(JDK)版本 5.0、6.0和7.0 上运行.

The Microsoft JDBC Driver 4.1 for SQL Server is JDBC 4.0 compliant and runs on the Java Development Kit (JDK) version 5.0, 6.0, and 7.0.

用于SQL Server的Microsoft JDBC驱动程序 4.0 符合JDBC 4.0,并在Java开发工具包(JDK)版本 5.0或6.0 上运行.

The Microsoft JDBC Driver 4.0 for SQL Server is JDBC 4.0 compliant and runs on the Java Development Kit (JDK) version 5.0 or 6.0.

换句话说,您需要升级到4.2版,以确保它与Java 8兼容.

In other words, you need to upgrade to version 4.2 in order to be sure that it works with Java 8.

这篇关于从Java 1.7升级到Java 1.8后,Microsoft JDBC驱动程序不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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