Skip to content
Tatjana Kopalova edited this page Oct 15, 2017 · 12 revisions

Install java jdk

For install the java jdk you have to add a repository. This is the ppa:webupd8team/java. You do that with the following command:

sudo add-apt-repository ppa:webupd8team/java

No you can update:

sudo apt-get update

JDK 8 install

For install the JDK 8 and set to default you have to execute the following command:

sudo apt-get install oracle-java8-installer
sudo apt-get install oracle-java8-set-default

JDK 9 install

For install the JDK 9 and set to default you have to execute the following command:

sudo apt-get install oracle-java9-installer
sudo apt-get install oracle-java9-set-default

A detailed install description of install jdk on ubuntu is on this link webupd8.org

Clone this wiki locally