SQLServer JDBC Driver 4.2 for Java 1.7

I have issues with my XA Transactions so I want to upgrade the JDBC driver to version 4.2

But I am still using Java 1.7 and then I get a java.lang.UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver : Unsupported major.minor version 52.0

In the release notes there is stated that the 4.2 driver also supports Java 1.7

Microsoft JDBC Driver 4.2 for SQL Server does not work with JRE 1.7,please use Microsoft JDBC Driver 4.1 for SQL Server instead. There is a similar thread for your reference.


一个字坑

猜你喜欢

转载自my.oschina.net/u/2438634/blog/541161