Visit Azul.com Support

Install Azul Zulu on Debian-based Linux

This section explains how to install Azul Zulu Builds of OpenJDK on Debian or Ubuntu, or other supported Debian-based operating systems. You can use the Azul’s APT repository, download a DEB package manually, or download a binary TAR.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 APT repository contains DEB packages for the x86-64 and ARM64 architectures. If your machine has a different CPU architecture (for example, 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 below.

  1. Import Azul’s public key:

     
    sudo apt install gnupg ca-certificates curl curl -s https://repos.azul.com/azul-repo.key | sudo gpg --dearmor -o /usr/share/keyrings/azul.gpg echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | sudo tee /etc/apt/sources.list.d/zulu.list
Note
The generated file requires access permissions level 644. You can set this permission using chmod 644 azul.gpg.
  1. Update the information about available packages:

     
    sudo apt update
  2. Install the required Azul Zulu package:

     
    sudo apt install zulu<jdk-version>-jdk # For example sudo apt install zulu21-jdk
  3. To verify your installation, run the java -version command. You should see output similar to the following:

     
    $ java -version openjdk version "21.0.4" 2024-07-16 LTS OpenJDK Runtime Environment Zulu21.36+17-CA (build 21.0.4+7-LTS) OpenJDK 64-Bit Server VM Zulu21.36+17-CA (build 21.0.4+7-LTS, mixed mode, sharing)

Azul Zulu Packages

The Azul APT repository uses the package dependency paradigm typical for Linux distributions where packages that provide complex functionality depend on packages with more basic functionality. Thus, the JDK package is split into multiple packages, such as JRE, documentation, source files, and so on. When you install the JDK package, you install the package itself and all its dependencies. You can also install the dependent packages separately. For example, if your application requires JRE only, you can install just the JRE package (or headless JRE) without downloading unnecessary dependencies.

The following table lists the DEB packages that are available from the Azul APT repository. The <X> placeholder stands for the major Java version.

Package Description

zulu<X>-ca

An empty package that installs zulu<X>-jdk.

zulu<X>-ca-jdk

Java Development Kit (including graphic components).

zulu<X>-ca-jdk-headless

Headless Java Development Kit (without GUI support).

zulu<X>-ca-jre

Java Runtime Environment including graphic components.

zulu<X>-ca-jre-headless

Headless Java Runtime Environment (without GUI support).

zulu<X>-ca-src

Azul Zulu JDK source files.

zulu<X>-ca-doc

Man pages for the executable commands.

zulu<X>-ca-demo

JDK demos and examples.

For each package listed in the table there is another package available without 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.

Installation Folder

The Azul Zulu DEB packages from the APT repository are installed in the following folder.

 
/usr/lib/jvm/zulu<X>-ca-<arch>

Where <X> is a major Java version (for example, 8 or 15) and <arch> is the CPU architecture. For example, here is the default installation folder for Azul Zulu 15:

 
/usr/lib/jvm/zulu15-ca-amd64

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 Downloadable DEB Packages 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.

  1. Download the appropriate DEB package for your OS from the Downloads page.

  2. 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
  3. 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>.deb

    For example, to install JDK 21 for AMD64, run:

     
    sudo apt install ./zulu21.36.17-ca-jdk21.0.4-linux_amd64.deb

    The package is installed in /usr/lib/jvm/zulu-21-amd64.

  4. Verify your installation by running java -version in a terminal window. You should see output similar to the following:

     
    $ java -version openjdk version "21.0.4" 2024-07-16 LTS OpenJDK Runtime Environment Zulu21.36+17-CA (build 21.0.4+7-LTS) OpenJDK 64-Bit Server VM Zulu21.36+17-CA (build 21.0.4+7-LTS, mixed mode, sharing)

Downloadable DEB Packages

Unlike the packages available from the Azul APT repository, the downloadable DEB packages are all-in-one packages, meaning they do not depend on other Azul packages, but already contain all dependent components (docs, source files, etc). They also install Azul Zulu in a different folder.

The following list provides information about the DEB packages you can download from Azul Downloads.

  • Azul Zulu JDK package:

    Package Name:

    zulu-<major_version>

    Installation Folder:

    /usr/lib/jvm/zulu-<major_version>-<arch>

  • JRE package:

    Package Name:

    zre-<major_version>

    Installation Folder:

    /usr/lib/jvm/zre-<major_version>-<arch>

  • JDK package with JavaFX:

    Package Name:

    zulu-fx-<major_version>

    Installation Folder:

    /usr/lib/jvm/zulu-fx-<major_version>-<arch>

Install from binary TAR.GZ file

You can download and use the binary tar.gz package, if necessary.

  1. Download the appropriate .tar.gz package for your OS from Azul Downloads.

  2. Verify that the checksum of the file matches the value provided on the download page. To calculate the checksum, use this command:

     
    sha256sum <package>.tar.gz

    Example output:

     
    $ sha256sum zulu21.36.17-ca-jdk21.0.4-linux_x64.tar.gz 318d0c2ed3c876fb7ea2c952945cdcf7decfb5264ca51aece159e635ac53d544 zulu21.36.17-ca-jdk21.0.4-linux_x64.tar.gz
  3. Extract the package content into a folder.

     
    tar -xzvf <package>.tar.gz

    This command creates a folder named to match the installation package name without .tar.gz. This is your Azul Zulu installation folder.

  4. Verify that the package was unpacked successfully by running the following command:

     
    $ <installation_folder>/bin/java -version openjdk version "21.0.4" 2024-07-16 LTS OpenJDK Runtime Environment Zulu21.36+17-CA (build 21.0.4+7-LTS) OpenJDK 64-Bit Server VM Zulu21.36+17-CA (build 21.0.4+7-LTS, mixed mode, sharing)
  5. (Optional) Add <installation_folder>/bin to your PATH environment variable, so that you can execute java from any directory without specifying the full path.

     
    export PATH=<installation_folder>/bin:$PATH