How to Verify which openjdk distribution vendor on RHEL RedHatLinux machine?

4.6k Views Asked by At

On checking with java -version get the output as

openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)

Wants to ensure this openjdk binary is from oracle or redhat. While checking on JMX VM Summary page it shows the Vendor name as "Oracle Corporation". Does this mean its oracle provided openjdk distribution ?

What should be the vendor name for RedHat OpenJDK distribution ?

3

There are 3 best solutions below

0
On

In general, java -version from Oracle's builds say

java version ...

Instead of

openjdk version ....

The java.vendor system property, unfortunately, has compatibility issues. It can't be changed without (potentially) breaking users.

For example, changing that property from Sun to Oracle once broke eclipse: https://it.slashdot.org/story/10/07/28/2121259/oracles-java-company-change-breaks-eclipse

So OpenJDK distributors are very very cautious about changing these vendor properties. Pretty much everyone will stick to the default values for pretty much all the system properties.

If you have installed OpenJDK on RHEL and you are using the java-*-openjdk packages, those have been built and are being maintained by Red Hat. You can find out what package that is by using rpm:

rpm -qf $(readlink -f $(which java))

If you see java-1.8.0-openjdk-headless, that's the package maintained by Red Hat.

4
On

openjdk is from oracle. i think the redhat just put binaries of openjdk in their repository. so the vendorname is oracle.

0
On

Oracle jdk is named as Hotspot

$ java -version

java version "1.8.0_31"

Java(TM) SE Runtime Environment (build 1.8.0_31-b13)

Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode)

Non-oracle jdk

$ java -version

openjdk version "1.8.0_191"

OpenJDK Runtime Environment (build 1.8.0_191-b12)

OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)