Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
PSchmitz
Contributor
Contributor

UnsupportedClassVersionError exception: SQLServerDriver

Hi,

I'm trying to run jobs using Talend Studio 7.3.1 R2021-06 and they disconnect with this error:

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

The module tab shows that the Maven URI for the installed mssql-jdbc.jar is mvn:org.talend.libraries/mssql-jdbc/6.0.0/jar (mvn:com.microsoft.sqlserver/mssql-jdbc/10.2.0/jar) . I have both OpenJDK 8 and 11 installed and have tried running Studio under both with no luck. Any suggestions on how to resolve this or dig further?

Labels (2)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hello,

The problem is that the mssql-jdbc jar is not compatible with your jdk.

could you please try the below workaround:

  1. delete the old mssql-jdbc folder under {studio home}\configuration\.m2\repository\com\microsoft\sqlserver\mssql-jdbc
  2. import the attach mssql-jdbc.jar via the studio windows->show_view->Modules
  3. try to run the job again.

 

 

View solution in original post

2 Replies
Anonymous
Not applicable

Hello,

The problem is that the mssql-jdbc jar is not compatible with your jdk.

could you please try the below workaround:

  1. delete the old mssql-jdbc folder under {studio home}\configuration\.m2\repository\com\microsoft\sqlserver\mssql-jdbc
  2. import the attach mssql-jdbc.jar via the studio windows->show_view->Modules
  3. try to run the job again.

 

 

PSchmitz
Contributor
Contributor
Author

Thanks, that appears to have resolved the problem.