8.9.2 Download and Update the Java JDK Package

You can update the JDK package by downloading and installing the latest version.

Before starting this step, make sure you have completed the steps in Stop the Management Server Process.
  1. As the root user, determine the current version of the installed JDK.
    # rpm -qa|grep jdk
    jdk-17-17.0.17-8.x86_64

    In the example, the server contains JDK 17 version 17.0.17-8.

  2. Download the updated JDK package.

    See Supported Java SE Downloads on MOS (My Oracle Support Doc ID KA961).

    Download the latest available update for the applicable JDK release (for example, JDK 17) on Linux x86-64.

  3. Extract and stage the JDK RPM file.

    Extract the contents of the downloaded ZIP file and find the JDK RPM file. The name of the file is similar to jdk-<version>_linux-x64_bin.rpm, for example jdk-17.0.20_linux-x64_bin.rpm. For convenience, place the RPM file in a temporary directory, such as /tmp.

  4. Install the updated JDK.

    For example:

    # rpm -Uhv /tmp/jdk-17.0.20_linux-x64_bin.rpm
  5. Verify the installation of the updated JDK package.

    The updated package may not replace the originally installed package, so you may see two versions of the JDK package installed.

    For example:

    # rpm -qa|grep jdk
    jdk-17-17.0.17-8.x86_64
    jdk-17-17.0.20-7.x86_64
  6. Remove the original JDK package from the server.

    For example:

    # rpm -e --nodeps jdk-17-17.0.17-8.x86_64
  7. Verify that only the updated JDK is available on the server.

    For example:

    # rpm -qa|grep jdk
    jdk-17-17.0.20-7.x86_64
  8. Remove the staged JDK RPM file.

    For example:

    # rm -f /tmp/jdk-17.0.20_linux-x64_bin.rpm
To complete the JDK update, continue with the steps in Reconfigure and Restart the Management Server Process.