Home

Install Java (Mac OS X)

Home » Java Quick Start » Install Java » 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:

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!

Subscribe to foojay updates:

https://foojay.io/feed/
Copied to the clipboard