Setup Oracle Java (JDK – 8) on Ubuntu

Open up a Ubuntu terminal and run below statements in sequence to install JDK 8

$ 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

leave your comment