Download the JDK for Linux 32-bit or 64-bit   https://mirrors.huaweicloud.com/java/jdk/   Example:   Make a directory in /usr/local where java will reside and copy tarball there:   sudo mkdir -p /usr/local/java   Navigate to /usr/local/java:   cd /usr/local/java   Download with wget   https://mirrors.huaweicloud.com/java/jdk/7u80-b15/jdk-7u80-linux-x64.tar.gz   Extract the tarball:   sudo tar xvzf  jdk-7u80-linux-x64.tar.gz   Check if tarball has been successfully extracted:   ls –a   Find and select Java's path   update-alternatives --config java   Edit /etc/profile with sudo privileges:   sudo vi /etc/profile   Add the following lines below to the end of /etc/profile file:   JAVA_HOME=/usr/local/java/jdk1.7.0_80  JRE_HOME=/usr/local/java/jdk1.7.0_80   PATH=$PATH:$JRE_HOME/bin:$JAVA_HOME/bin   export JAVA_HOME  export JRE_HOME  export PATH   Update alternatives:   sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.7.0_80/bin/ja...
SA Bagus is a blog about computer technology, networking, cloud, crypto, and cyber security.