How To Install Oracle Java JDK on Ubuntu 14.04

By | November 17, 2015

apt-get dist-upgrade

apt-get install software-properties-common

sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java8-installer

sudo update-alternatives –config java
sudo vim /etc/environment
JAVA_HOME=/usr/lib/jvm/jdk1.7.0