OCI: Java Version shows Different than What is Installed on the System
Applies To:
Oracle Cloud Infrastructure - Version N/A and later
Linux x86-64 on Oracle Public Cloud
Symptoms:
The java version shows 1.8.0_401-b10
but installed package version should show 1.8.0_402-b06
.
[root@localhost ~]# /bin/java -version
java version "1.8.0_401"
Java(TM) SE Runtime Environment (build 1.8.0_401-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.401-b10, mixed mode)
[root@localhost ~]#
[root@localhost ~]# rpm -qa|grep ^java-
java-1.8.0-openjdk-1.8.0.402.b06-1.el7_9.x86_64
java-1.8.0-openjdk-devel-1.8.0.402.b06-1.el7_9.x86_64
java-1.8.0-openjdk-headless-1.8.0.402.b06-1.el7_9.x86_64
[root@localhost ~]#
Cause:
The alternatives configuration is not pointing to the desired Java version. In this particular case, Java OpenJDK (Oracle Linux's implementation of Java JDK) is preferred over Java SE JDK (Oracle's real Java JDK); the 2 Java products are entirely different products.
Tagged:
0