You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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
Question marked as Top-ranking reply

Posted on Dec 27, 2023 12:33 PM

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?

19 replies
Question marked as Top-ranking reply

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/

Jun 16, 2024 3:48 PM in response to smtips

smtips wrote:

Wonder why that link has a page that's in a language I can't read? It is not in English


? quoting the source would take some guess work out of your reference...


if this is it

re: https://www.java.com/it/download/apple.jsp


—so change the Italian to en


https://www.java.com/en/download/apple.jsp


—or use the translator built into Safari ...




—or use the goole translator ...

https://translate.google.com/

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

Jun 16, 2024 3:51 PM in response to smtips

it works for many people, so you might want to investigate if you’ve skipped some steps in configuring it.


It’s the best known path for installing any Java beyond Oracle’s Java 8, which is at this point pretty old.


it’s been a while since I installed it (that was a link to Java 17 back then).


perhaps you can go to the music server community for your app and get help setting up Java once it’s installed.

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.