IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

All Products: How to Upgrade Java JDK on CentOS 6 and 7

All Products: How to Upgrade Java JDK on CentOS 6 and 7

Environment

  • All Products
  • Java OpenJDK
  • CentOS 6: All Supported Versions
  • CentOS 7: All Supported Versions

Objective

To upgrade to the latest Java OpenJDK platform

Resolution

  1. From CentOS, open Terminal.
  2. Confirm which Java version is currently installed.
java -version
  1. Browse and find the preferred, available Java OpenJDK.
    yum list *openjdk*
  2. Install the required version of Java.
yum install java-<version here>-openjdk
  1. Set the home environment for Java.
    1. Type:
      update-alternatives --config java
    2. Choose the appropriate selection according to the number shown.
  2. Confirm that the latest version of Java has been installed.
java -version

Additional Notes

  • Upgrading major versions of Java OpenJDK on the application server of on-prem EDR is not recommended.
  • If a specific Java OpenJDK version does not appear as being available this is due most likely to CentOS version incompatibility.

Related Content


Was this article helpful? Yes No
100% helpful (1/1)
Article Information
Author:
Creation Date:
‎09-09-2020
Views:
14920