The more accurate title is (but it is too long): Use the free open source Zulu OpenJDK build version, install the latest OpenJDK 14, 13, 11, 8, or even 7 in Ubuntu, Debian, Linux Mint, RHEL, or SLES. Azul system. Provide DEB, RPM and tar.gz binaries, as well as apt and yum repositories.Azul Systems offers tested and certified versions of OpenJDK under the following names: Zulu. Zulu is free and open source software (available for free redistribution) and provides the latest OpenJDK builds for Java 14, 13, 11, 8, and 7.
The Zulu OpenJDK build is available for Windows, macOS and Linux. On Linux, there are DEB and RPM packages that can be easily installed on Debian, Ubuntu, RHEL, Fedora, Oracle Linux or SLES, etc. as well as .tar.gz binaries and versions specific to Alpine Linux. For all the Linux distributions mentioned above (minus Fedora (which does not work for me on Fedora 29)) and Alpine Linux, repositories are also available. So why build with Zulu OpenJDK instead of Oracle Java or OpenJDK?
- The Oracle Java license has changed Applicable to new licenses issued from April 16, 2019. The new license only allows free use of certain uses, such as personal use and development use, while other cases require a commercial license.
- OpenJDK is not always up to date-it depends on the Linux distribution you are using. For example, Ubuntu 18.10 and 18.04 have OpenJDK 8u191, while Ubuntu 19.04 does not even have OpenJDK 8, and the latest Oracle JDK 8 and Zulu JDK 8 are 8u212 versions. In addition, OpenJDK 12 is only available on Ubuntu 19.04. This is the OpenJDK situation in Ubuntu:
- According to reports As an Azul employee, Zulu went through the complete JCK / TCK to ensure that it complies with the Java SE specifications defined by JCP / JSR. In addition, an analysis was performed to ensure that each individual compiled file has the correct GPLv2 with a CPE license header, thus ensuring that you will not encounter licensing issues when building with Zulu OpenJDK.
- New Oracle Java 11 installer for Ubuntu or Linux Mint (use native Oracle Java .tar.gz)
- How to install Oracle Java 14 (JDK 14) on Ubuntu, Debian or Linux Mint from APT PPA repository
Download / install Zulu OpenJDK 14, 13, 11, 8, or 7 in Ubuntu, Debian, Linux Mint, RHEL, etc.
Zulu OpenJDK 14, 13, 11, 8 or 7 versions for Windows, macOS and Linux can be Download from this page. There are binary files such as DEB, RPM and .tar.gz (64-bit) on Linux. Azul Systems also provides Zulu OpenJDK in Debian, Ubuntu and other Linux distributions based on Debian or Ubuntu (such as Linux) (64bit only) ). Mint, basic OS, etc., as well as RHEL, Oracle Linux or SLES.
The repository retains the older package version, so, for example, you can downgrade the package to the version that was available before the last update in case the latest version has problems. Learn how to downgrade packages on Debian or Ubuntu (usually).
Both the DEB / RPM package and the repository package have been updated with Java alternatives to make Zulu OpenJDK the default setting. If you are using “oracle-java14-installer” (or older version) on Debian / Ubuntu, you must remove the “oracle-java14-installer-set-default” package to make Zulu OpenJDK the default system Java.
The Zulu OpenJDK software package does not include desktop integration, so you will not be able to find any OpenJDK desktop files in the application menu. You can also choose to use Zulu OpenJDK to open certain JAR files from the file manager. Import the Zulu repository key and add the Zulu repository as follows:
- Ubuntu, Linux Mint and other Ubuntu-based Linux distributions that support add-apt-repository:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9 sudo apt-add-repository 'deb http://repos.azulsystems.com/ubuntu stable main' sudo apt update
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 0xB1998361219BD9C9 echo "deb http://repos.azulsystems.com/debian stable main" | sudo tee /etc/apt/sources.list.d/zulu.list sudo apt update
- RHEL or Oracle Linux:
sudo rpm --import http://repos.azulsystems.com/RPM-GPG-KEY-azulsystems sudo curl -o /etc/yum.repos.d/zulu.repo http://repos.azulsystems.com/rhel/zulu.repo
- SLES (may also work in openSUSE-not tested):
sudo rpm --import http://repos.azulsystems.com/RPM-GPG-KEY-azulsystems sudo zypper addrepo http://repos.azulsystems.com/sles/latest zulu
Now you can install one of the Zulu OpenJDK builds provided by Azul Systems:
- Debian, Ubuntu, Linux Mint and Debian or Ubuntu-based Linux distributions:
sudo apt install zulu-
- RHEL or Oracle Linux:
sudo yum install zulu-
sudo zypper install zulu-
In all the above cases,
Additional Zulu OpenJDK links may be useful:
- There is also an open source version of Zulu OpenJFX (11 and 8), but they are only provided as archive files, not DEB or RPM software packages.
- Export Zulu OpenJDK JAVA_HOME
- Switch Java version (Use newer replacement)
- Unlimited strength of Java Cryptography Extension (JCE) Jurisdiction policy file for Zulu OpenJDK (called CEK or Zulu Cryptography Extension Kit)
- Zulu Embedded (Zulu OpenJDK is built for ARM, including Raspberry Pi)