Installing Java on RHEL or CentOS Linux

IBM Disconnected Log Collector requires IBM® Semeru Runtime Certified Edition JDK, Version 11, 64-bit.

About this task

Disconnected Log Collector requires IBM Semeru Runtime Certified Edition JDK, Version 11, 64-bit.

Procedure

  1. Go to IBM Semeru Runtimes Downloads , and download the IBM Semeru Runtime Certified Edition JDK, Version 11 RPM package for Linux® on 64-bit systems.
  2. Copy the installation package to your computer or VM where you plan to install the Disconnected Log Collector, and then complete the remaining steps on that computer or VM.
  3. To install Java on your RHEL or CentOS machine, run the following command:
    Tip: Click the Copy to clipboard icon at the upper right of your code block, then replace the <version> placeholder with the correct version number for the installable package and run the following command.
    yum -y install ibm-semeru-certified-11-jdk-11.<version>.x86_64.rpm

    The default installation path is /opt/ibm/ibm-semeru-certified-11-jdk/.

    Note: For more information about installing and configuring IBM Semeru Runtime Certified Edition, Version 11, see the Semeru Runtimes Installation.
  4. After you install Java, you should update the PATH variable to include /opt/ibm/ibm-semeru-certified-11-jdk/. To update your Shell configuration file with required environment variables, run the following commands:
    echo 'export JAVA_HOME=/opt/ibm/ibm-semeru-certified-11-jdk' >> ~/.bashrc
    
    echo 'export PATH=$JAVA_HOME/bin:$PATH' >> ~/.bashrc
    
    Reload the shell configuration to apply the updated environment variables:
    source ~/.bashrc
  5. Confirm that Java has been installed and configured correctly by running.
    java -version
    You should see output similar to:
    java version "11.<version>"
    IBM Semeru Runtime Certified Edition 11.<version> (build 11.<version>)
  6. To verify the location of the Java binary, use the following command,
    which java

    The output should point to the path similar to /opt/ibm/ibm-semeru-certified-11-jdk/bin.

What to do next

After you install Java™, you can install Disconnected Log Collector. For more information, see Installing or upgrading Disconnected Log Collector on RHEL or CentOS Linux.