Install on Debian or Ubuntu
This section explains how to install Azul Zulu builds of OpenJDK on Debian or Ubuntu. You can use the Azul APT repository, download a DEB package manually, or download a binary TAG.GZ package.
Install from Azul APT repository
You can add Azul’s APT repository to the list of package sources on your system and install Azul Zulu by using your OS package manager.
Note
|
The Azul’s repository contains DEB packages for the x86 architectures. If the CPU architecture of your machine is different from x86 (for example, arm64 or arm32), consider installing the appropriate TAR.GZ package. You can find TAR.GZ packages for all supported platforms on the Downloads page. |
Installing with a package manager requires root privileges. Log in as root
or use sudo
when running the commands listed below.
-
Set up Azul APT repository:
$ # install the necessary dependencies $ sudo apt-get -q update $ sudo apt-get -yq install gnupg curl $ # add Azul's public key $ sudo apt-key adv \ --keyserver hkp://keyserver.ubuntu.com:80 \ --recv-keys 0xB1998361219BD9C9 $ # download and install the package that adds Azul's repository to the list of sources $ curl -O https://cdn.azul.com/zulu/bin/zulu-repo_1.0.0-2_all.deb $ # install the package $ sudo apt-get install ./zulu-repo_1.0.0-2_all.deb $ # update the package sources $ sudo apt-get update -
When the repository is set up, install the required Azul Zulu package by running
apt-get install <package>
. For example, to install Azul Zulu JDK 11, run:$ # install Azul Zulu JDK 11 $ sudo apt-get install zulu11-jdkSee the Azul Zulu Packages sections below for information about available packages.
-
To verify your installation, run the
java -version
command. You should see output similar to the following:$ java -version openjdk version "11.0.10" 2021-01-19 LTS OpenJDK Runtime Environment Zulu11.45+27-CA (build 11.0.10+9-LTS) OpenJDK 64-Bit Server VM Zulu11.45+27-CA (build 11.0.10+9-LTS, mixed mode)
Azul Zulu Packages
The following table lists the DEB packages that are available from the Azul APT repository.
Package | Description |
---|---|
|
An empty package that installs |
|
Java Development Kit (including graphic components). |
|
Headless Java Development Kit (without GUI support). |
|
Java Runtime Environment including graphic components. |
|
Headless Java Runtime Environment (without GUI support). |
|
Azul Zulu JDK source files. |
|
JDK documentation. |
|
JDK demos and examples. |
For each package listed in the table there is another package that does not contain the -ca-
suffix in its name.
For example, zulu11-ca-jdk
and zulu11-jdk
.
The latter is an empty package that has its "ca" counterpart as a dependency.
Either package installs Azul Zulu JDK,
Install DEB package
You can download the Azul Zulu DEB package from the Azul Download page and install it manually using the APT package manager. Azul provides three types of downloadable DEB packages: JDK, JDK with JavaFX, and JRE. See Package Details for more information.
Installing with a package manager requires root privileges.
Log in to your root
account or use sudo
to run the commands listed below.
-
Download the appropriate DEB package for your OS from the Downloads page.
-
Verify that the checksum of the downloaded file matches the value provided on the download page. To calculate the checksum, use this command:
sha256sum <package>.deb -
Run the command below in the directory where you saved the DEB package. Replace the
<package>
placeholder with the actual name of the file. The command may ask you to confirm that you want to install the package dependencies.sudo apt install ./<package>.debFor example, to install JDK 15 for AMD64, run:
sudo apt install ./zulu15.29.15-ca-jdk15.0.2-linux_amd64.debThe package is installed in
/usr/lib/jvm/zulu-15-amd64
. -
Verify your installation by running
java -version
in a terminal window. You should see output similar to the following:$ java -version openjdk version "15.0.2" 2021-01-19 OpenJDK Runtime Environment Zulu15.29+15-CA (build 15.0.2+7) OpenJDK 64-Bit Server VM Zulu15.29+15-CA (build 15.0.2+7, mixed mode, sharing)
Package Details
The downloadable DEB package is different from the packages available from the Azul APT repository in that it is an all-in-one package and installs Azul Zulu in a different folder.
Azul Zulu JDK package:
Package Name: |
|
Installation Folder: |
|
JRE package:
Package Name: |
|
Installation Folder: |
|
JDK package with JavaFX:
Package Name: |
|
Installation Folder: |
|
Install from binary TAR.GZ file
You can download and use the binary tar.gz
package, if necessary.
-
Download the appropriate
.tar.gz
package for your OS from Azul Downloads. -
Verify that the checksum of the file matches the value provided on the download page. To calculate the checksum, use this command:
sha256sum <zulu_package>.tar.gzExample output:
$ sha256sum zulu11.45.27-ca-jdk11.0.10-linux_x64.tar.gz 0bd85593bae021314378f3b146cfe36a6c9b0afd964d897c34201034ace3e785 zulu11.45.27-ca-jdk11.0.10-linux_x64.tar.gz -
Extract the package content into a folder.
tar -xzvf <zulu_package>.tar.gzThis command creates a folder named to match the installation package name without
.tar.gz
. This is your Azul Zulu installation folder. -
Verify that the package was unpacked successfully by running the following command:
$ <zulu_installation_folder>/bin/java -version openjdk version "11.0.10" 2021-01-19 LTS OpenJDK Runtime Environment Zulu11.45+27-CA (build 11.0.10+9-LTS) OpenJDK 64-Bit Server VM Zulu11.45+27-CA (build 11.0.10+9-LTS, mixed mode) -
(Optional) Add
<zulu_installation_folder>/bin
to yourPATH
environment variable, so that you can executejava
from any directory without specifying the full path.export PATH=<zulu_installation_folder>/bin:$PATH