Installing Java Development Kit

You must have the Java Development Kit (JDK) installed on your system prior to installing the Eclipse integrated development environment (IDE). {ProductFullName} supports the following JDKs:

Procedure
  1. From the Oracle JDK download page, download the JDK tar.gz file suitable for your system.

    Note

    You need to accept the Oracle license agreement to proceed.

    Alternatively, you can download JDK by using the command-line interface:

    $ wget https://download.oracle.com/java/11/latest/<jdk-file>
  2. Extract the tar.gz file:

    $ tar -xzf <jdk-file>
  3. Optional: To make JDK available system-wide, move the extracted folder to the /opt directory:

    $ sudo mv <jdk-extracted-folder> /opt/<jdk-file>
  4. Set up the JAVA_HOME environment variable and add the JDK bin directory to the PATH variable:

    1. Open the .bashrc file:

      $ nano ~/.bashrc
    2. Add the following lines to the file:

      export JAVA_HOME=/opt/<jdk-file>
      export PATH=$PATH:$JAVA_HOME/bin
    3. Save the file and close it.

    4. To apply the new changes, reload the file:

      $ source ~/.bashrc
Verification