Microsoft JDBC Driver is not working after upgrade from Java 1.7 to Java 1.8

谁说我不能喝 提交于 2019-12-25 00:35:29

问题


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?


回答1:


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

  • 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.

  • 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.

  • 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.

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



来源:https://stackoverflow.com/questions/32250027/microsoft-jdbc-driver-is-not-working-after-upgrade-from-java-1-7-to-java-1-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!