8.21.2016

Install Oracle Java 9, 8, or 7 in Linux Ubuntu and Derivative

The simple way install Oracle Java in Linux Ubuntu and Derivate. Follow this instruction:

Adding ppa repository:

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


If you want install Oracle Java 7, use this command:

$ sudo apt-get install oracle-java7-installer

To change default java, using this Command:

$ sudo update-alternatives --config java



The last, if you want remove java from you Linux distribution use purge than remove. Using purge also will remove configuration files and others related with java installer.

$ sudo apt-get purge oracle-java8-installer

No comments:

Post a Comment