Client applications may fail to start citing a version mismatch after upgrading from version 7.x to 8.2

Client applications may fail to start citing a version mismatch after upgrading from version 7.x to 8.2

book

Article ID: KB0076175

calendar_today

Updated On:

Products Versions
TIBCO Data Virtualization 8.2 and higher

Description

After upgrading from 7.8 to v8.2 and then replacing csjdbc.jar, a client application fails to start citing a version mismatch
-----------------
Error:  Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedClassVersionError: cs/jdbc/driver/CompositeDriver : Unsupported major.minor version 52.0
 at java.lang.ClassLoader.defineClass1(Native Method)
------------------

Issue/Introduction

After upgrading from 7.8 to v8.2 and then replacing csjdbc.jar, my client application fails to start citing a version mismatch

Resolution

TDV v8.2 ships with two different driver jar files, as shown in the directory listing below.

Example
Directory of C:\apps\tdv82\apps\jdbc\lib
09/25/2019  02:12 AM           313,159 csjdbc.jar
09/25/2019  02:12 AM           306,280 csjdbc8.jar

If the client application uses JRE 1.8, the application needs to use csjdbc8.jar. The reason is that this file has been compiled with Java version 8 and will work with JRE 1.8

If the client application uses JRE 11,  the application needs to use csjdbc.jar. The reason is that this file has been compiled with Java version 11 and will work with JRE 11.

Check which JRE version the client application is using, and select the matching driver jar file accordingly. If a non-matching driver jar file is used, the client will throw an exception of the type "Unsupported major.minor version".