This article will help to setup Java into Ubuntu 16.04.3 LTS server
Ubuntu is an open source operating system for computers. It is a Linux distribution based on the Debian architecture.
The Java Runtime Environment (JRE) is a set of software tools for development of Java applications. It combines the Java Virtual Machine (JVM), platform core classes and supporting libraries. JRE is part of the Java Development Kit (JDK), but can be downloaded separately.
Run this terminal command one by one to setup Java into Ubuntu:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default
sudo cat >> /etc/environment <<EOL JAVA_HOME=/usr/lib/jvm/java-8-oracle JRE_HOME=/usr/lib/jvm/java-8-oracle/jre EOL
java -version
https://gist.github.com/saydulk/18876ff5051bccca94e0f50a457da3e8