Install Oracle Java 8/7/6 on Ubuntu, Linux Mint & Elementary OS Systems. Install Oracle Java 8/7/6 on Ubuntu 14.10, Ubuntu 14.04, Linux Mint and Elementary OS System.
Install Oracle Java 8 on Ubuntu, Linux Mint and Elementary OS
sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
Run the following commands to set Oracle Java 8 by default:
sudo apt-get install oracle-java8-set-default
Install Oracle Java 7 on Ubuntu, Linux Mint and Elementary OS
sudo apt-get remove openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Run the following commands to set Oracle Java 7 by default, do:
sudo apt-get install oracle-java7-set-default
Install Oracle Java 6 on Ubuntu, Linux Mint and Elementary OS
sudo apt-get purge openjdk*
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer
Run the following commands to set Oracle Java 6 by default, do:
sudo apt-get install oracle-java6-set-default