3.1.1 Pre-requisite - Installing Java 11

  • Obtain the Java tarball pack from the Oracle Java Downloads. Download jdk-8u281-linux-x64.tar.gz file to a directory.
  • Change the directory in which you want to install,
    cd <Directory_Path>
  • Unpack the tarball and install Java using the following command:
    tar zxvf  <Path>/jdk-8u281-linux-x64.tar.gz

    Note:

    You must enter the absolute path of the folder where the TAR file is located.
  • Now, set the path and environment variable for Java as:
    export JAVA_HOME=<Java_Install_Path>/jdk1.8.0_281
    export PATH=$JAVA_HOME/bin:$PATH