My Oracle Support Banner

Oracle Linux : Switching Back To Previous Version of openjdk (Doc ID 2056238.1)

Last updated on AUGUST 04, 2018

Applies to:

Linux OS - Version Oracle Linux 6.0 to Oracle Linux 6.6 with Unbreakable Enterprise Kernel [3.8.13] [Release OL6 to OL6U6]
Linux x86-64
Linux x86

Goal

How to downgrade the Java version which got installed/updated during system patching. 

The "java" command does not run the JVM that has been installed.  Java applications can fail to run if an unexpected Java Runtime Environment is found.

Recent version is - java-1.8.0-openjdk-1.8.0.51-1.b16.el6_7.x86_64 

Required version is - java-1.7.0-openjdk-1.7.0.85-2.6.1.3.0.1.el6_7.x86_64

# rpm -qa | grep -i openjdk
java-1.8.0-openjdk-1.8.0.51-1.b16.el6_7.x86_64   <<------- Recently installed 
java-1.6.0-openjdk-1.6.0.34-1.13.6.1.el6_6.x86_64
java-1.8.0-openjdk-headless-1.8.0.51-1.b16.el6_7.x86_64    
java-1.7.0-openjdk-1.7.0.85-2.6.1.3.0.1.el6_7.x86_64 <<----------- Require version

 

Solution

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
Goal
Solution
 1. Verify current version of Java used by OL
 2. Switch to older version of java
 3. Verify java version again

References


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