IBM Support

How does one find the version of java compiler with which the classes in nzjdbc.jar were compiled

Question & Answer


Question

How does one find the version of java compiler with which the classes in nzjdbc.jar were compiled

Cause

Some third party tools may throw an error while using nzjdbc.jar because our jdbc classes have been compiled using an incompatible java version/compiler

Answer

The below commands give the java and javac version available on the local computer respectively.

c:\JDBC>java -version
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)

c:\JDBC>javac -version
javac 1.7.0_05

The below command gives the back end NPS version number for which the nzjdbc.jar file has been built.

c:\JDBC>java -jar nzjdbc.jar -v

Release 6.0.5 driver [build 24823]

None of the above commands give us the version number of the java compiler used to compile the classes contained in the nzjdbc.jar file.
This can be obtained only by running the below commands and looking at the Created-By property.

c:\JDBC>jar xvf nzjdbc.jar META-INF
created: META-INF/
inflated: META-INF/MANIFEST.MF


c:\JDBC>type META-INF\MANIFEST.MF
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 1.5.0_15-b04 (Sun Microsystems Inc.)
Main-Class: org.netezza.ui.Main

[{"Product":{"code":"SSULQD","label":"IBM PureData System"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":null,"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
17 October 2019

UID

swg21620372