Linux: After Upgrading Java the Command "java -version" is not Showing up the latest java Installed.
(Doc ID 2643096.1)
Last updated on SEPTEMBER 22, 2021
Applies to:
Linux OS - Version Oracle Linux 6.10 with Unbreakable Enterprise Kernel [4.1.12] and laterLinux 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 |