paint-brush
Oracle, IBM, or Open JDK? How to Know Java Vendor Detailsby@yohantechy
8,248 reads
8,248 reads

Oracle, IBM, or Open JDK? How to Know Java Vendor Details

by Yogesh ChavanSeptember 23rd, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Many times we come across a situation where we need to know what kind of java JDK is installed on a particular server. It could be the JDK from Oracle or IBM or an Open JDK. The command is simple but shows a lot of information that we would like to know in some of the other situations. After setting those up it started working. After some google search, I got to know that if the java client is not running on IBM java then it needs to set special arguments.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Oracle, IBM, or Open JDK? How to Know Java Vendor Details
Yogesh Chavan HackerNoon profile picture

We often come across a situation where we need to know what kind of java JDK is installed on a particular server. It could be the JDK from Oracle or IBM or an Open JDK.


I came across one such situation when connecting to IBM MQ channels over SSL from a client where java was installed. However, the java client program could not connect MQ channels despite all the MQ configurations and settings being correct at the client end and even on the server end.


Later, based on the error codes and after some google search, I learned that if the java client is not running on IBM java, we need to set special arguments. After setting those up, it started working.


Here I would like to mention a simple java command that will provide us the vendor details describing what vendors java implementation has been installed on that particular server. The command is simple but shows a lot of information that we would like to know in some other situations.


Oracle JDK


C:\Users\Yohan>java -XshowSettings:properties -version
Property settings:
awt.toolkit = sun.awt.windows.WToolkit
file.encoding = Cp1252
file.encoding.pkg = sun.io
file.separator = java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = .
java.class.version = 52.0
java.endorsed.dirs = C:\Program Files\Java\jre1.8.0_60\lib\endorsed
java.ext.dirs = C:\Program Files\Java\jre1.8.0_60\lib\ext
C:\Windows\Sun\Java\lib\ext
java.home = C:\Program Files\Java\jre1.8.0_60
java.io.tmpdir = C:\Users\Yohan\AppData\Local\Tempjava.library.path = C:\ProgramData\Oracle\Java\javapath
C:\Windows\Sun\Java\bin
C:\Windows\system32
C:\Windows
G:\YOHAN\oracle19\WINDOWS.X64_193000_db_home\bin
G:\YOHAN\OracleSoftware_19version\WINDOWS.X64_193000_db_home\bin
C:\Program Files\Git\cmd
C:\ProgramData\Oracle\Java\javapath
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 ^& MySQL Utilities 1.5C:\Program Files\TortoiseSVN\bin
C:\Program Files (x86)\Java\jdk1.8.0_60/bin
G:\softwares\apache-maven-3.2.2/bin
C:\Program Files\Microsoft VS Code\bin
C:\Program Fileodejs\ C:\Users\Yohan\AppData\Roaming\npm
    C:\Program Files\nodejs
    .
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.8.0_60-b27
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 1.8
java.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
java.version = 1.8.0_60
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 1.8
java.vm.vendor = Oracle Corporation
java.vm.version = 25.60-b23
line.separator = \r \n
os.arch = amd64
os.name = Windows 8.1
os.version = 6.3
path.separator = ;
sun.arch.data.model = 64
sun.boot.class.path = C:\Program Files\Java\jre1.8.0_60\lib\resources.jar
    C:\Program Files\Java\jre1.8.0_60\lib\rt.jar
    C:\Program Files\Java\jre1.8.0_60\lib\sunrsasign.jar
    C:\Program Files\Java\jre1.8.0_60\lib\jsse.jar
    C:\Program Files\Java\jre1.8.0_60\lib\jce.jar
    C:\Program Files\Java\jre1.8.0_60\lib\charsets.jar
    C:\Program Files\Java\jre1.8.0_60\lib\jfr.jar
    C:\Program Files\Java\jre1.8.0_60\classes
sun.boot.library.path = C:\Program Files\Java\jre1.8.0_60\bin
sun.cpu.endian = little
sun.cpu.isalist = amd64
sun.desktop = windows
sun.io.unicode.encoding = UnicodeLittle
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = Cp1252
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.os.patch.level =
sun.stderr.encoding = cp437
sun.stdout.encoding = cp437
user.country = US
user.dir = C:\Users\Yohan
user.home = C:\Users\Yohan
user.language = en
user.name = Yohan
user.script =
user.timezone =
user.variant =
java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

IBM JDK


G:\YOHAN\softwares_1\ibm\ibm_sdk80\bin>java -XshowSettings:properties -version
Property settings:
awt.toolkit = sun.awt.windows.WToolkit
com.ibm.cpu.endian = little
com.ibm.jcl.checkClassPath =
com.ibm.oti.configuration = scar
com.ibm.oti.shared.enabled = false
com.ibm.oti.vm.bootstrap.library.path = G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\bin\default
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\bin
com.ibm.oti.vm.library.version = 29
com.ibm.system.agent.path = G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\bin
com.ibm.util.extralibs.properties =
com.ibm.vm.bitmode = 32
com.ibm.zero.version = 2
console.encoding = Cp437
file.encoding = Cp1252
file.encoding.pkg = sun.io
file.separator = ibm.signalhandling.rs = false
ibm.signalhandling.sigchain = true
ibm.signalhandling.sigint = true
ibm.system.encoding = Cp1252
java.awt.fonts =
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path = .
java.class.version = 52.0
java.compiler = j9jit29
java.endorsed.dirs = G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\endorsed
java.ext.dirs = G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\ext
java.fullversion = 8.0.6.35 - pwi3280sr6fp35-20210714_01(SR6 FP35)
JRE 1.8.0 Windows 8.1 x86-32-Bit 20210622_7763 (JIT enabled, AOT enabled)
OpenJ9   - b1f3adb
OMR      - c2f4a18
IBM      - c24a144
java.home = G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre
java.io.tmpdir = C:\Users\Yohan\AppData\Local\Tempjava.lang.stringBuffer.growAggressively = false
java.library.path = G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\bin\default
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\bin
C:\Windows\SysWOW64
C:\Windows
G:\YOHAN\oracle19\WINDOWS.X64_193000_db_home\bin
G:\YOHAN\OracleSoftware_19version\WINDOWS.X64_193000_db_home\bin
C:\Program Files\Git\cmd
C:\ProgramData\Oracle\Java\javapath
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 ^& MySQL Utilities 1.5C:\Program Files\TortoiseSVN\bin
C:\Program Files (x86)\Java\jdk1.8.0_60/bin
G:\softwares\apache-maven-3.2.2/bin
C:\Program Files\Microsoft VS Code\bin
C:\Program Fileodejs\
C:\Users\Yohan\AppData\Roaming\npm
    C:\Program Files\nodejs
    .
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 8.0.6.35 - pwi3280sr6fp35-20210714_01(SR6 FP35)
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 1.8
java.vendor = IBM Corporation
java.vendor.url = http://www.ibm.com
java.version = 1.8.0_301
java.vm.info = JRE 1.8.0 Windows 8.1 x86-32-Bit 20210622_7763 (JIT enabled, AOT enabled)
OpenJ9   - b1f3adb
OMR      - c2f4a18
IBM      - c24a144
java.vm.name = IBM J9 VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 1.8
java.vm.vendor = IBM Corporation
java.vm.version = 2.9
line.separator = \r
os.arch = x86
os.encoding = UTF8
os.name = Windows 8.1
os.version = 6.3
path.separator = ;
sun.arch.data.model = 32
sun.boot.class.path = G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\bin\default\jclSC180\vm.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\se-service.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\math.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\ibmorb.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\ibmorbapi.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\ibmcfw.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\ibmpkcs.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\ibmcertpathfw.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\ibmjgssfw.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\ibmjssefw.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\ibmsaslfw.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\ibmjcefw.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\ibmjgssprovider.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\ibmjsseprovider2.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\ibmcertpathprovider.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\xmldsigfw.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\xml.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\charsets.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\resources.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\rt.jar
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\lib\dataaccess.jar
sun.boot.library.path = G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\bin\default
G:\YOHAN\softwares_1\ibm\ibm_sdk80\jre\bin
sun.cpu.endian = little
sun.desktop = windows
sun.io.unicode.encoding = UnicodeLittle
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = Cp1252
user.country = US
user.dir = G:\YOHAN\softwares_1\ibm\ibm_sdk80\bin
user.home = C:\Users\Yohan
user.language = en
user.name = Yohan
user.timezone =
user.variant =

java version "1.8.0_301"
Java(TM) SE Runtime Environment (build 8.0.6.35 - pwi3280sr6fp35-20210714_01(SR6 FP35))
IBM J9 VM (build 2.9, JRE 1.8.0 Windows 8.1 x86-32-Bit 20210622_7763 (JIT enabled, AOT enabled)
OpenJ9   - b1f3adb
OMR      - c2f4a18
IBM      - c24a144)
JCL - 20210625_01 based on Oracle jdk8u301-b09

Open JDK


G:\YOHAN\softwares_1\openjdk11\bin>java -XshowSettings:properties -version
Property settings:
awt.toolkit = sun.awt.windows.WToolkit
file.encoding = Cp1252
file.separator = java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.awt.printerjob = sun.awt.windows.WPrinterJob
java.class.path =
java.class.version = 55.0
java.home = G:\YOHAN\softwares_1\openjdk11
java.io.tmpdir = C:\Users\Yohan\AppData\Local\Tempjava.library.path = G:\YOHAN\softwares_1\openjdk11\bin
C:\Windows\Sun\Java\bin
C:\Windows\system32
C:\Windows
G:\YOHAN\oracle19\WINDOWS.X64_193000_db_home\bin
G:\YOHAN\OracleSoftware_19version\WINDOWS.X64_193000_db_home\bin
C:\Program Files\Git\cmd
C:\ProgramData\Oracle\Java\javapath
C:\Windows\system32
C:\Windows
C:\Windows\System32\Wbem
C:\Windows\System32\WindowsPowerShell\v1.0C:\Program Files (x86)\MySQL\MySQL Fabric 1.5 ^& MySQL Utilities 1.5C:\Program Files\TortoiseSVN\bin
C:\Program Files (x86)\Java\jdk1.8.0_60/bin
G:\softwares\apache-maven-3.2.2/bin
C:\Program Files\Microsoft VS Code\bin
C:\Program Fileodejs\
 C:\Users\Yohan\AppData\Roaming\npm
    C:\Program Files\nodejs
    .
java.runtime.name = OpenJDK Runtime Environment
java.runtime.version = 11.0.12+7-LTS
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 11
java.vendor = Red Hat, Inc.
java.vendor.url = https://access.redhat.com/
java.vendor.url.bug = https://bugzilla.redhat.com/enter_bug.cgi
java.vendor.version = 18.9
java.version = 11.0.12
java.version.date = 2021-07-20
java.vm.compressedOopsMode = Zero based
java.vm.info = mixed mode
java.vm.name = OpenJDK 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 11
java.vm.vendor = Red Hat, Inc.
java.vm.version = 11.0.12+7-LTS
jdk.debug = release
line.separator = \r \n
os.arch = amd64
os.name = Windows 8.1
os.version = 6.3
path.separator = ;
sun.arch.data.model = 64
sun.boot.library.path = G:\YOHAN\softwares_1\openjdk11\bin
sun.cpu.endian = little
sun.cpu.isalist = amd64
sun.desktop = windows
sun.io.unicode.encoding = UnicodeLittle
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = Cp1252
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.os.patch.level =
sun.stderr.encoding = cp437
sun.stdout.encoding = cp437
user.country = US
user.dir = G:\YOHAN\softwares_1\openjdk11\bin
user.home = C:\Users\Yohan
user.language = en
user.name = Yohan
user.script =
user.timezone =
user.variant =
openjdk version "11.0.12" 2021-07-20 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.12+7-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.12+7-LTS, mixed mode)

That’s it! Stay tuned for more stories :)