How to install Java on macOS Sonoma?

How do I install java runtime in MacOS Sonoma


[Re-Titled By Moderator]

Posted on Nov 17, 2023 7:51 PM

Reply
19 replies

Dec 27, 2023 12:33 PM in response to leroydouglas

At Java.com there is a link "If you are running on an M series system (ARM64), download the ARM64 version of the JRE ." Today that downloads Java 8 update 391. When I first tried installing Java runtime on my new MacBook Pro M3 Pro shipped December, 2023, now running Sonoma 14.2.1, it failed. The installer app started, requested my password, showed "installing", then reported "failed to install", "OS error code 1". Today I re-downloaded the installer and tried again. It was still 8u391, but this time it succeeded, and I've confirmed running a .jar application. Not sure why it failed the first time. Try, try again?

Dec 30, 2023 10:45 AM in response to leroydouglas

While it seems intuitive to recommend installing Java from Java.com, that site is going to recommend Oracle's Java 8 (which is still being supported). It hasn't been updated to newer LTS ("Long Term Support") versions. Oracle assumes that developers will be following their platform guidelines and packaging their own JREs with jpackage.


That's turned out to be incorrect for many users/developers, so if you need Java newer than 2014, this is the reference site for OpenJDK, which will allow you to install a more recent JDK.


https://adoptium.net/temurin/releases/

Mar 18, 2024 8:08 AM in response to Popokrumper

I have a MacBook Air M1 with Sonoma 14.1. My toolbar keeps popping up with a reminder to update JAVA. Using the <system settings> (under the Apple icon) I entered Java in the search box. A single Java icon appears > About tab shows current version >

Upgrade tab says I have the latest Java version 8 update 401 so it appears I'm in good shape. Thanks for the info. Ray

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to install Java on macOS Sonoma?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.