2016-10-20

Oracle Java 8u111 is now available in the WebUpd8 Oracle Java PPA. For release notes, please visit THIS page.

Previously, this package would increment the Java priority to make it default. The oracle-java8-installer package now sets the Java priority to 1081, and that may or may not set it as default, depending on other Java packages you may have installed (for instance, if Java 7 is also installed, Java 8 becomes default, but if Java 9 is installed, Java 8 doesn’t become default).

To make Java 8 default, you must install the “oracle-java8-set-default” package (which configures the Java environment variables and sets it as default), which I added as a “Recommended” package to “oracle-java8-installer”.

In Ubuntu, recommended packages are automatically installed, so “oracle-java8-set-default” should be installed when installing “oracle-java8-installer”. In Linux Mint on the other hand, recommended packages are not installed by default, so you must install this package manually if you want to set Oracle Java 8 as default.

So, <b>if you want to set Oracle Java 8 as default</b>, no matter what other Java versions are installed, make sure that you install the <i>oracle-java8-set-default </i>package (which, again, should be installed with the main Oracle Java Installer package in Ubuntu, but not in Linux Mint):
sudo apt install oracle-java8-set-default

<b>If you don’t want to make Oracle Java 8 default</b> (it might still be set as default, depending on what other Java versions you may have installed), install the oracle-java8-installer with “–no-install-recommends”:
sudo apt install --no-install-recommends oracle-java8-installer

Note: removing the oracle-java8-set-default package does not undo all the changes (I have yet to find a way to do this properly). If you don’t want to set it as default, remove both oracle-java8-installer and oracle-java8-set-default packages, and then install oracle-java8-installer with “–no-install-recommends” (like mentioned above).

Edit: the changes I mentioned above for the oracle-java8-installer package, were also applied to the oracle-java9-installer.

For information on installing Oracle JDK7, JDK8 and JDK9 in Ubuntu / Linux Mint or Debian, see:

Install Oracle Java 7 in Ubuntu via PPA Repository

How To Install Oracle Java 7 In Debian Via Repository

Install Oracle Java 8 In Ubuntu Via PPA Repository [JDK8]

How To Install Oracle Java 8 In Debian Via Repository [JDK8]

Install Oracle Java 9 In Ubuntu, Linux Mint Or Debian Via PPA Repository [JDK9]

Package(s) info:

Package names: “oracle-java8-installer”

Ubuntu version(s): 16.10, 16.04, 15.10, 15.04, 14.04, and 12.04

PPA: Oracle Java 7 / 8 / 9 Installer

Show more