



In Ubuntu, recommended packages are automatically installed, so "oracle-java8-set-default" should be installed when installing "oracle-java8-installer". 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". 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). Previously, this package would increment the Java priority to make it default. The PPA supports JDK8 for both 32bit and 64bit as well as ARM (ARM v6/v7 Hard Float ABI - there's no JDK 8 ARM Soft Float ABI archive available for download on Oracle's website). Below you'll find instructions on how to install it in Ubuntu / Linux Mint via a PPA repository. Because of this I cannot update the PPA with the latest Java (and the old links were broken by Oracle).įor this reason, THIS PPA IS DISCONTINUED (unless I find some way around this limitation). Oracle Java downloads now require logging in to an Oracle account to download Java updates, like the latest Oracle Java 8u211 / Java SE 8u212. Please review the terms carefully before downloading and using this product. The new license permits certain uses, such as personal use and development use, at no cost - but other uses authorized under prior Oracle JDK licenses may no longer be available. The new Oracle Technology Network License Agreement for Oracle Java SE is substantially different from prior Oracle JDK licenses. 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).The Oracle JDK License has changed for releases starting April 16, 2019. 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). Sudo apt-get install -no-install-recommends oracle-java8-installer If you don't want to make Oracle Java 8 default (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-get install oracle-java8-set-default So, if you want to set Oracle Java 8 as default, no matter what other Java versions are installed, make sure that you install the oracle-java8-set-default package (which, again, should be automatically installed with the main Oracle Java Installer package in Ubuntu, but not in Linux Mint): 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.

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".įor instance, in Ubuntu, recommended packages are automatically installed, so "oracle-java8-set-default" should be installed when installing "oracle-java8-installer".
