Visit Azul.com Support

Install Azul Zulu on macOS

This section explains how to install Azul Zulu builds of OpenJDK on macOS.

Install using a DMG installer

  1. Download a DMG installer for Azul Zulu from Azul Downloads.

  2. Double-click the file to start the installation and follow the wizard instructions.

    The default installation folder is:

     
    /Library/Java/JavaVirtualMachines/<zulu_folder>/Contents/Home

    The <zulu_folder> placeholder represents the type of the Azul Zulu package (JDK or JRE) and its version:

    Package Azul Zulu folder name Example

    JDK

    zulu-<major_version>.jdk

    zulu-11.jdk

    JRE

    zulu-<major_version>.jre

    zulu-11.jre

    For example, the default installation folder for Azul Zulu JDK 11 is:

     
    /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home
  3. To verify your Azul Zulu installation, run the java command in a terminal window:

     
    java -version

    You should see output similar to the following:

     
    openjdk version "11.0.11" 2021-04-20 LTS OpenJDK Runtime Environment Zulu11.48+21-CA (build 11.0.11+9-LTS) OpenJDK 64-Bit Server VM Zulu11.48+21-CA (build 11.0.11+9-LTS, mixed mode)

Install from a ZIP or TAR.GZ file

  1. Download Azul Zulu as a ZIP or TAR.GZ file from Azul Downloads.

  2. Launch Finder and navigate to the download folder. Double click the file to unpack it. If you download the file using Safari, it may automatically unpack the file.

    Alternatively, you can use one of the commands below to unpack the file:

    For ZIP:

     
    unzip <zulu_package>.zip

    For TAR.GZ:

     
    tar -xzvf <zulu_package>.tar.gz

    The folder where you unpacked the archive is your Azul Zulu installation folder.

  3. To verify your Azul Zulu installation, run the following command in a terminal window:

     
    <installation_folder>/bin/java -version
  4. (Optional) Add <installation_folder>/bin to your PATH environment variable, so that you can execute java from any folder without specifying the full path.