How to install Java on macOS Sonoma?
How do I install java runtime in MacOS Sonoma
[Re-Titled By Moderator]
How do I install java runtime in MacOS Sonoma
[Re-Titled By Moderator]
rafael215 wrote:
How do I install java runtime in MacOS Sonoma
http://www.java.com for information on installing Java.
Odd that the Terminal tool requires a java runtime app to be installed, in order to run commands like 'apt update'. Why have this tool available if it's not fully functional?
Odd that the Terminal tool requires a java runtime app to be installed, in order to run commands like 'apt update'. Why have this tool available if it's not fully functional?
apt isn’t Unix, it is Linux. macOS is based on Unix, not Linux.
Thanks for that reminder! I'm no java expert but I see that there are several executables in the /usr/bin/java folder here, but of course no handy man page.
Thanks for that reminder! I'm no java expert but I see that there are several executables in the /usr/bin/java folder here, but of course no handy man page.
They only exist to run an installed java runtime. They are not java.
What is it you are trying to do?
Barney-15E wrote:
What is it you are trying to do?
You should address that to the OP.
The OP wanted to install Java and that was already answered. I have no idea why you have posted here. Nothing you have said has anything to do with installing Java.
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?
I forgot to mention that before I tried running the installer for the second time, I first tried the Uninstall option of the JRE installer. It reported that it found no Java to uninstall. Possibly running Uninstall before Install makes a difference?
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.
Hi. I have MacBook Pro M2 Pro Sonoma 14.9. I downloaded the jre-8u401-macosx-aarch64.dmg file from the link in the https://www.java.com/it/download/apple.jsp and the installation looks fine. The only problem is that I am not able to locate the Java control Panel in the Sonoma OS ... Can you pls help ? Thanks
Open System Settings. Enter Java in the search slot. Click on "Java" that it finds. The Java Control Panel then opens in a separate window.
The Java control panel was deprecated in Java 9 and removed in Java 11.
If you have a modern version of Java (21 is the latest Long Term Support (LTS) release), you won't have it and don't need it (according to Java).
Yes the release is 21 LTS… the reason to access Java control panel is the need to insert an URL as an ”exception” in order to launch an application which otherwise cannot start.
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
How to install Java on macOS Sonoma?