Migrating from Oracle Java 8 to OpenJDK 1.8.0
To upgrade Java, Open Java Runtime Environment (JRE) or Java Development Kit (JDK) RPM packages are recommended:
- java-1.8.0-openjdk-headless
- java-1.8.0-openjdk-devel
The RPM packages execute all necessary actions to install, configure Java, and update the operating system (OS) configuration. Web Services and Applications uses the default Java that is configured on the node. Therefore, if Oracle Java was installed previously using a Java RPM package, newly installed/updated OpenJDK should be selected as default one.
Invoke update-alternatives util and select the required java installation:
update-alternatives --config java
There are four programs that provide 'Java':
Selection |
Command |
1 |
/usr/lib/jvm/java/bin/java |
2 |
/usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java |
3 |
/usr/java/jdk1.8.0_92/jre/bin/java |
|
/usr/lib/jvm/jre-1.8.0-openjdk.x86_64/bin/java |
After typing the command, press Enter to retain the current selection[+], or type selection number.