Installing Java Development Kit

Complete the following steps to install the software on a Linux machine. This procedure describes how to install the openjdk-11+28_linux-x64_bin.tar.gz package file.

Prerequisite: Download the latest version of the Java SE development kit.

NOTE: The individual steps required to install the software might vary at your site.

To install Java:

  1. Go to the /di/platform/downloads directory.

    cd /di/platform/downloads

  2. Extract the JDK file.

    sudo tar -xvzf openjdk-11+28_linux-x64_bin.tar.gz

    The -xvzf arguments do the following:

    • x—Extracts the files from the archive
    • v—Lists all files as they are processed
    • z—Uncompresses the files
    • f—Names the file you are uncompressing

    Press Enter to unpack the JDK package and create the jdk-11 subdirectory.

  3. Change to the jdk-11 directory by entering the following command:

    cd jdk-11

  4. View the directory contents by entering the following command:

    ls