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 21, as an installer:
- For an Apple computer with Intel chip:
https://cdn.azul.com/zulu/bin/zulu21.28.85-ca-jdk21.0.0-macosx_x64.dmg - For an Apple computer with M1 or M2 chip:
https://cdn.azul.com/zulu/bin/zulu21.28.85-ca-jdk21.0.0-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 "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)
That's it. You're now ready to run Java programs and, even better… create your own!