My Oracle Support Banner

Linux: After Upgrading Java the Command "java -version" is not Showing up the latest java Installed. (Doc ID 2643096.1)

Last updated on MARCH 17, 2020

Applies to:

Linux OS - Version Oracle Linux 6.10 with Unbreakable Enterprise Kernel [4.1.12] and later
Linux x86-64

Symptoms

After upgrading the Java version, when running the command "java -version" is showing the oldest java version.

# rpm -qa | grep -i java
java-1.8.0-openjdk-1.8.0.242.b07-1.el6_10.x86_64
tzdata-java-2019c-1.el6.noarch
java-1.6.0-openjdk-1.6.0.41-1.13.13.1.0.1.el6_8.x86_64
java-1.8.0-openjdk-headless-1.8.0.242.b07-1.el6_10.x86_64 <<<<<new version installed 

 
# java -version
java version "1.6.0_41"
OpenJDK Runtime Environment (IcedTea6 1.13.13) (rhel-1.13.13.1.0.1.el6_8-x86_64)
OpenJDK 64-Bit Server VM (build 23.41-b41, mixed mode)

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.