Installing Java on Ubuntu 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 Archive (tgz) package for Linux® on x86 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. Verify that the /opt/ibm directory exists on your system by running the following command:
    ls /opt/ibm
    If the directory does not exist, run the following command:
    mkdir /opt/ibm
  4. To install Java on your Ubuntu machine, extract the Java archive into /opt/ibm by running 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.
    tar -zxvf ibm-semeru-certified-jdk_x64_linux_11.<version>.tar.gz -C /opt/ibm
    Note: For more information about installing and configuring IBM Semeru Runtime Certified Edition, see Semeru Runtimes installation.
  5. After you install Java, you must update the PATH variable to include /opt/ibm/jdk-11.<version>/bin/. This is required later to run the update-ca-certificates.
    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 your installed Java package and run the following command.
    echo 'export PATH=$PATH:/opt/ibm/jdk-11.<version>/bin' >> ~/.profile

    Reload the shell configuration to apply the updated environment variables:

    source ~/.profile
  6. Confirm that Java has been installed and configured correctly by running.
    java -version
    You should see output similar to the following:
    "java version "11.<version>"
    IBM Semeru Runtime Certified Edition 11.<version> (build 11.<version>)
  7. 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/jdk-11.<version>/bin.

  8. Install the ca-certificates-java package by running the following commands:
    apt update
    apt install ca-certificates-java
    Note: This step ensures that Java’s trust store is properly populated with your system’s trusted SSL certificates, allowing Java applications to securely communicate over HTTPS without certificate validation errors.

What to do next

After you have install Java, you can install Disconnected Log Collector. For more information, see Installing or upgrading Disconnected Log Collector on Ubuntu Linux.