The Answer

You can update Java by downloading the newer version from Oracle directly When you install the installer would delete the older version for you.


The OLD Answer (no longer works)

Or you Mac has built in system that would fetch and update java from Oracle for you for you. Go to System Preference > Java > Update > Update Now. It would also be a good idea to turn on "Check for Updates Automatically" that way when a newer version of Java comes out your Mac would ask you to install it and it becomes a simple one click install.

Answer from OLIVER.KOO on Stack Overflow
🌐
Oracle
java.com › en › download › help › mac_java_update.html
How do I Update Java for my Mac?
Go to the Update tab in Java Control Panel and click on Update Now button that brings up Installer window.
🌐
Apple Support
support.apple.com › en-us › 106567
Java for Mac OS X 10.6 Update 17 - Apple Support
Java for Mac OS X 10.6 Update 17 delivers improved security, reliability, and compatibility by updating Java SE 6 to 1.6.0_65.
Discussions

How to update my installed Java version? The “install now” button doesn’t do anything.
Today I received a notification from my MacUpdater that there is a new Java version. I didn’t even know that this on my Mac. I can get to the control panel in the screenshot saying the same, but when I click on “update now” nothing happens (I guess some kind of installer should pop up). What should I do? More on reddit.com
🌐 r/MacOS
4
8
April 16, 2023
How to update my Java from 17 to 22?
Please ensure that: Your code is properly formatted as code block - see the sidebar (About on mobile) for instructions You include any and all error messages in full You ask clear questions You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions. Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar If any of the above points is not met, your post can and will be removed without further warning. Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png ) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc. Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit. Code blocks look like this: public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } } You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above. If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures. To potential helpers Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/javahelp
19
5
May 6, 2024
Switching versions of Java on Mac OSX
Not standard, but easier, try using sdkman. More on reddit.com
🌐 r/javahelp
10
1
January 7, 2023
Manage Multiple JDKs on Mac OS, Linux and Windows WSL2

Use these tools if you find them convenient, but know that a lot of effort has gone into making the JDK not require any setup, nor does it have any notion of "environment". You can set JAVA_HOME, you can leave JAVA_HOME pointed at a symbolic link and change that -- this is what SDKMAN does anyway -- or you can do nothing and just run java from its JDK directory -- it will do the right thing on its own. That's how the JDK was designed to work. Such tools add an unnecessary layer of internal persisted state, and unlike the language runtimes that inspired them, they are something that the JDK was specifically designed to avoid.

More on reddit.com
🌐 r/java
31
14
April 25, 2020
People also ask

How do I check which Java versions are installed on my Mac?
Run ls /Library/Java/JavaVirtualMachines/ in Terminal to list installed versions.
🌐
tataneu.com
tataneu.com › home › consumer electronics › how to switch java versions on mac: a complete faq guide
How to Switch Java Versions on Mac: A Complete FAQ Guide
How can I change the default Java version on macOS?
Use the command export JAVA_HOME=/Library/Java/JavaVirtualMachines//Contents/Home in Terminal, then verify the change with java -version.
🌐
tataneu.com
tataneu.com › home › consumer electronics › how to switch java versions on mac: a complete faq guide
How to Switch Java Versions on Mac: A Complete FAQ Guide
Do changes to the Java version persist after restarting my Mac?
No, unless you update your shell configuration file (e.g., .bash_profile, .zshrc) with the appropriate $JAVA_HOME export command.
🌐
tataneu.com
tataneu.com › home › consumer electronics › how to switch java versions on mac: a complete faq guide
How to Switch Java Versions on Mac: A Complete FAQ Guide
🌐
Oracle
java.com › en › download › help › java_mac.html
Installing and using Oracle Java on macOS
Information about Oracle Java for Mac - Install, remove, revert Apple Java 6, configure, system requirements
🌐
Oracle
oracle.com › java › technologies › downloads
Download the Latest Java LTS Free
Subsequent JDK 21 updates will be licensed under the Java SE OTN License (OTN) and production use beyond the limited free grants of the OTN license will require a fee. ... The URLs listed above will remain the same for update releases to allow their use in scripts. Learn more about automating these downloads · Gain expert support, rigorously tested Oracle JDK updates including all supported versions and long-term support for production, fleet automation with Java Management Service, BPRs for urgent customer reported issues, and more with an Oracle Java SE subscription.
Find elsewhere
🌐
Besu-eth
docs.besu-eth.org › how to › install and update java
Install and update Java | Besu documentation
1 month ago - You might need to update your environment to make Java visible to Besu. Edit the .bashrc file in your home directory (or create it if needed) and add the following lines to the end of the file: ... You should see the JDK versions output. You can install OpenJDK on MacOS using Homebrew.
🌐
Medium
medium.com › @anuragchitti1103 › update-java-jdk-version-for-mac-silicon-f0df6b3d1cb7
Update Java JDK version for MAC Silicon - Anurag Chitti - Medium
February 29, 2024 - Update Java JDK version for MAC Silicon Here are a few simple steps for updating the JDK version using HomeBrew. brew install openjdk@17 Java will be installed …
🌐
Oracle
java.com › en › download › help › mac_install.html
How do I install Java for my Mac?
The screen shots and instructions below are for Java 8 Update 311 (8u311). If you are installing another version, make sure you change the version number appropriately. Example: For Java 8 Update 311 (8u311) the file to download is jre-8u311-macosx-x64.dmg
🌐
Tata Neu
tataneu.com › home › consumer electronics › how to switch java versions on mac: a complete faq guide
How to Switch Java Versions on Mac: A Complete FAQ Guide
April 30, 2025 - The easiest way to change default java mac is to set the $JAVA_HOME variable. Open Terminal and execute: export JAVA_HOME=/Library/Java/JavaVirtualMachines/<version>/Contents/Home. After running this command, verify the update by running java ...
🌐
freeCodeCamp
freecodecamp.org › news › how-to-install-java-on-mac
How to Install Java on Mac in 2026
February 20, 2026 - You'll get the correct native build whether you have an Apple Silicon or Intel Mac. For more details about the Homebrew installation process, including the alternative formula method and troubleshooting, see Brew Install Java, Cask Method. After installation, open a new Terminal window. Existing windows may not detect the new installation. ... $ java -version openjdk version "25.0.1" 2025-10-21 LTS OpenJDK Runtime Environment Temurin-25.0.1+8 (build 25.0.1+8-LTS) OpenJDK 64-Bit Server VM Temurin-25.0.1+8 (build 25.0.1+8-LTS, mixed mode)
🌐
GitHub
gist.github.com › Esonhugh › 2f448d0e9cf77acec388db7089394a35
update java versions on macos or other computer. This script will switch java version at current env once. · GitHub
July 26, 2024 - update java versions on macos or other computer. This script will switch java version at current env once. - update-java-version
🌐
Azul Systems
azul.com › home › azul downloads
Java 8, 11, 17, 21, 25 Download for Linux, Windows and macOS
January 30, 2023 - Click here to download the Azul Zulu Builds of OpenJDK for Java 8, 11, 17, 21, 25 for Linux, Windows and macOS. Also download Azul Platform Prime.
🌐
Mac Install Guide
mac.install.guide › java
Java on Mac · Mac Install Guide · 2026
# Check Java version $ java -version # Check compiler version $ javac -version # List all installed JDKs $ /usr/libexec/java_home -V # Check JAVA_HOME $ echo $JAVA_HOME # Install Java via Homebrew (recommended) $ brew install --cask temurin@25 # Update Java via Homebrew $ brew upgrade --cask temurin@25 · /Library/Java/JavaVirtualMachines/ – Standard JDK installation directory · /usr/libexec/java_home – macOS utility for finding JDKs
🌐
Intercom
intercom.help › all collections › printers and scales › troubleshooting › how to check java version in windows or mac
How to Check Java Version in Windows or Mac | Upright Labs Help Center
March 4, 2024 - This guide covers how to check ... Lister Connect Errors guide, this article will guide you through how to check your Java version to see if it needs to be installed or updated....
🌐
Reddit
reddit.com › r/macos › how to update my installed java version? the “install now” button doesn’t do anything.
r/MacOS on Reddit: How to update my installed Java version? The “install now” button doesn’t do anything.
April 16, 2023 - But if you really want to manage Java versions on your machine then I’d suggest using homebrew with the “temurin” distribution: https://formulae.brew.sh/cask/temurin ... No idea. How could I know which app is using that? I also don’t really remember installing it myself, unless I did it during the initial setup years ago for some reason. ... Failed to personalize the software update.
🌐
YouTube
youtube.com › watch
Update Java Version in MAC BOOK || How to update java version in MAC || How to check Java Version - YouTube
Please Like | Share | Subscribe to this channel 🙏🙏🙏how to switch between java versions on mac ,Java JDK update in MAC ,how to change java version on mac m...
Published   May 7, 2024
🌐
Oracle
docs.oracle.com › en › java › javase › 17 › install › installation-jdk-macos.html
5 Installation of the JDK on macOS - Java
April 21, 2026 - There can be multiple JDKs installed on the macOS system. You can determine which version of the JDK is the default by entering java -version in a Terminal window. If the installed version is 17 Interim 0, Update 0, and Patch 0, then you see a string that includes the text 17.