Install Azul Zulu JDK 19 on Apple Silicon | Mac M1

With the recent arrival of Java 19, new updates are coming and you can see them on the Oracle website. In this article, I am going to show you how to install this new JDK on any Apple Silicon.
For this article, I am going to use the Zulu JDK provided by Azul.
TL’DR:
- Download the ‘.dmg’, ‘.zip’ or ‘.tar.gz’ files.
- Install the JDK.
- Verify the installation.
There are different ways to perform the installation. Choose the one that suits you best.
Installation on macOS Using a DMG Package through the GUI
Before you install Zulu, complete the tasks in the section, Preparing the Zulu Installation Platform.
- Double-click the downloaded DMG file and follow the wizard instructions.
- Verify your in installation by running the
java -versioncommand in a terminal.

Installation on macOS Using the Zulu ZIP File
Before you install Zulu, complete the tasks in the section, Preparing the Zulu Installation Platform.
- 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 the command below to unpack the file:
unzip <zulu_package>.zipThe 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:
<installation_folder>/bin/java -version
Installation on macOS Using the Zulu TAR.GZ File
Before you install Zulu, complete the tasks in the section, Preparing the Zulu Installation Platform.
- 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 the command below to unpack the file:
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:
<installation_folder>/bin/java -version
Common errors
If you have multiple versions of java installed, you may need to specify which one you want to use.
You can choose the desired JDK by executing from the terminal:
export java_home=/PATH-TO-YOUR-JDK/Contents/Home example: export java_home=/Library/Java/JavaVirtualMachines/zulu-19.jdk/Contents/Home






