Java is one of the must have software for most of the appliction available these days in the market. In this tutorial, we will guide you to install Java on Ubuntu 16.04 using Apt-Get.
How to Install Java on Ubuntu 16.04 with Apt-Get
Use following command to install the JRE ( Java Runtime environment).
sudo apt-get install default-jre
You can also install the JDK with the following command.
sudo apt-get install default-jdk
Meanwhile, we will show you the process to install ORACLE JDK in your ubuntu.
Installing the Oracle JDK
Add oracle’s ppa and update your system.
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
Now, install oracle using following command.
sudo apt-get install oracle-java8-installer