Home
Install Java (Mac OS X)
Is Java not available on your Mac OS X computer yet?
No problem, let's use an installer to make the process really easy.
This is a direct link to the Azul Zulu build of OpenJDK distribution, version 17, as an installer:
- For an Apple computer with Intel chip:
https://cdn.azul.com/zulu/bin/zulu17.38.21-ca-jdk17.0.5-macosx_x64.dmg - For an Apple computer with M1 or M2 chip:
https://cdn.azul.com/zulu/bin/zulu17.38.21-ca-jdk17.0.5-macosx_aarch64.dmg
Many more distributions and versions of Java exist. You can read more info here on how to find another distribution or version.
Once the .dmg
file completed downloading, double-click it, and follow the instructions.



After the installation has completed, you can check the installed version by opening a Terminal and running the java -version
command.
You should get the following result:
% java -version openjdk version "17.0.5" 2022-10-18 LTS OpenJDK Runtime Environment Zulu17.38+21-CA (build 17.0.5+8-LTS) OpenJDK 64-Bit Server VM Zulu17.38+21-CA (build 17.0.5+8-LTS, mixed mode, sharing)
That's it. You're now ready to run Java programs and, even better… create your own!