Install Azul Zulu Builds of OpenJDK on MacOS
This section explains how to install Azul Zulu on MacOS
Install using a DMG installer
-
Download a DMG installer for Azul Zulu from Azul Downloads.
-
Double-click the file to start the installation and follow the wizard instructions.
The default installation folder is:
/Library/Java/JavaVirtualMachines/<package_name>/Contents/HomeThe
<package_name>
placeholder represents the type of the Azul Zulu package (JDK or JRE) and its version:Package Installation Folder 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
Install from a ZIP or TAR.GZ file
-
Download Azul Zulu as a ZIP or TAR.GZ file from Azul Downloads.
-
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>.zipFor TAG.GZ:
tar -xzvf <zulu_package>.tar.gzThe folder where you unpacked the archive is your Azul Zulu installation folder.
-
To verify your Azul Zulu installation, run the following command in a terminal window:
<zulu_installation_folder>/bin/java -version -
(Optional) Add
<zulu_installation_folder>/bin
to yourPATH
environment variable, so that you can executejava
from any folder without specifying the full path.