How to install OpenJDK 8 on 14.04 LTS

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

Source: java – How to install OpenJDK 8 on 14.04 LTS? – Ask Ubuntu