

Update the existing PATH variable by adding the below bin folders, separated with a colon. # sudo tar -xvzf ~/Downloads/jdk-8u151-linux-圆4.tar.gzĮdit the environment file. # cd /usr/lib/jvmĮxtract the downloaded JDK. Step 2: Extract JDK to Java's default locationĬreate a jvm folder in /usr/lib/ which is the default location for Java. It is recommended that you install only the latest JDK.

A text editor, whether it's vi, vim, emacs, etc.The instructions in this tutorial will work on other versions of Ubuntu as well, including 14.04, 16.10, and 17.04. In this guide, you'll learn how to manually install Java 8 on Ubuntu 16.04.
