If you’re using command line tools on Mac, chances are you would benefit from using home brew. Installing home brew is pretty simple, just google it and it should give you a command to run in the terminal. After installing homebrew it’s easy enough to probably run a command like “brew install java11” or something like that. Google it and then you’ll prob find what you need Answer from MostWanted29 on reddit.com
🌐
Medium
medium.com › @kirebyte › using-homebrew-to-install-java-jdk11-on-macos-2021-4a90aa276f1c
Using HomeBrew to Install Java JDK11 on MacOS (2021) | by Erick Gustavo López Siordia | Medium
August 5, 2021 - If you skip this step the system won’t be able to find a java runtime for you to use. sudo ln -sfn /usr/local/opt/openjdk@11/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk-11.jdk
Discussions

macos - Java/JDK for the Apple Silicon chips - Stack Overflow
Once you unpack the Azul JDK, you ... to /Library/Java/JavaVirtualMachines. ... i downloaded their .dmg and it just worked -- no copying around needed 2021-02-06T00:09:39.113Z+00:00 ... In my case, after installing OpenJDK successfully on MacBook Air (M1), the java command still ... More on stackoverflow.com
🌐 stackoverflow.com
How to install java on Mac m1?
I read somewhere last week that there is a new M1 version of Java runtime coming. But I could not find it today when I searched. More on reddit.com
🌐 r/MacOS
15
6
September 29, 2021
Installing Java via Homebrew
You logged in using a passkey from another device. For faster access next time, add a passkey to this device · I am documenting how to install Java11 on macOS via homebrew, so that this topic will pop up via search if you run into problems (like I did) More on groups.io
🌐 groups.io
October 31, 2023
Obtain Java 11 for macOS? - Ask Different
I know in recent years the Java development cadence has changed, becoming much more rapid and more predictably scheduled. New plans were announced for regular Long-Term Support (LTS) releases. And ... More on apple.stackexchange.com
🌐 apple.stackexchange.com
December 20, 2018
🌐
Oracle
java.com › en › download › help › mac_install.html
How do I install Java for my Mac?
1. Download the jre-8u311-macosx-x64.dmg file. Review and agree to the terms of the license agreement before downloading the file. ... 4. Double-click on the .app icon to launch install Wizard. You might be prompted with message indicating app being downloaded from the Internet. Are you sure you want to open it? (See below screenshot as reference). Click Open to continue. 5. The Install Wizard displays the Welcome to Java installation screen. Click Install
🌐
Oracle
docs.oracle.com › en › java › javase › 11 › install › installation-jdk-macos.html
5 Installation of the JDK on macOS - Java
July 15, 2025 - Administrator privileges are required to install the JDK on macOS. When starting a Java application through the command line, the system uses the default JDK.
🌐
Lehigh Computer Science
docs.cse.lehigh.edu › java › installing-java-11-mac
Installing Java JDK Version 11 on Mac OS - Lehigh Computer Science Docs
Click on Other platforms and versions to find version 11: ... Before we can configure the filters to find the appropriate download, it is important to identify the architecture of the Mac where this Java software will be installed. To find this, see the documentation for Finding a Mac's CPU Architecture. Set up the filters for ‘macOS’, ‘x64’ if running an Intel-based Mac or 'aarch64' if running an M1 or M2-based Mac, ‘JDK’, and Version ‘11’ as shown, verify the version shown looks like jdk-11.x.x+x, and that the Architecture shown is correct for the target Mac, then click on the ‘.pkg’ link to download the installer:
🌐
OS X Daily
osxdaily.com › home › how to install java on mac with m3, m2, m1 apple silicon chip
How to Install Java on Mac with M3, M2, M1 Apple Silicon Chip - OS X Daily
June 3, 2024 - This particular walkthrough will ... the “MacOS” tab · For an Apple Silicon (M1, M2, M3, etc) Mac, choose the “ARM64 DMG Installer” download (Intel Mac users can use the X64 download, but we’re focusing on Apple ...
Top answer
1 of 16
211

A command line approach (thanks to the Homebrew team and the hard work of @vladimir-kempik and other openjdk contributors on the JEP-391 branch)

# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Install OpenJDK
brew install openjdk

Verify it's installed:

$(brew --prefix openjdk)/bin/java --version

Verify it's for the arm64 hardware:

file $(brew --prefix openjdk)/bin/java     
# /opt/homebrew/opt/openjdk/bin/java: Mach-O 64-bit executable arm64

Note: To install openjdk system-wide, follow the on-screen instructions provided by Homebrew.

2 of 16
127

Yes.

On this page: AdoptOpenJDK Latest Releases you can select 'macOS' from the 'Operating System' dropdown, and then from 'Architecture', it's currently only x64, but soonish there should be AArch64 or ARM64 (those are usually the shortcodes for 64-bit ARM). Possibly, as Apple no doubt has a bunch of extensions built into their M1 designs, and Apple gets its own.

If you instead leave Operation System on 'any', you'll note aarch64 is in there, and this gets you to a Linux release for ARM processors. That (probably) won't run on macOS on M1 hardware, but that's 95% of the work already done.

So: It's not there yet, but note that JDKs for ARM have been available for more than decade, and whilst JDK 15 has dropped support for a bunch of exotic OS/architecture combinations (such as Solaris), ARM development has always remained at least partially relevant (even if so far it's mostly an Oracle commercial license offering). That is to say: It should not be a herculean effort to create an adoptopenjdk release that runs on M1s natively, so presumably, it will happen. But, it's an open source effort, so if you're anxious, by all means, read up and contribute :)

Apple has not given any details on this architecture whatsoever until November 10th 2020, unless you bought a development kit box for it (a Mac Mini with an A14 chip, which isn't an M1 chip, but close enough I guess), and signed a big NDA.

As a rule, open source projects will run as fast as possible in the opposite direction if you wave an NDA around, so if you dislike this state of affairs, I don't think it's wise to complain to adoptopenjdk or other packagers and open source projects about it :)

Fortunately, now it's out, and an NDA is no longer required. My assumption is that the ARM branch of the OpenJDK source code + the macOS bits that already exist for the macOS x64 release can be combined rather easily once someone with some familiarity with the OpenJDK source code has an M1-based macOS system to test it on, which should mean an adoptopenjdk macos-aarch64 release should be here within the month.

But, open source. You didn't pay them, you have no contract, and they don't owe it to you. Donate to the effort or contribute a pull request if you want it to go faster.

UPDATE:

  • Azul's M1 OpenJDK builds
  • Microsoft's (yes, really) GitHub source repo for an early access OpenJDK16 build for macOS on AArch64. Note that Microsoft's been working on the OpenJDK branch of AArch64 (for ARM-based Windows 10) for a while, which goes back to: A lot of the hard work was already done.
Find elsewhere
🌐
Reddit
reddit.com › r/macos › how to install java on mac m1?
r/MacOS on Reddit: How to install java on Mac m1?
September 29, 2021 - I'm using a MacBook Air M1 base model with 256GB internal SSD storage and processes which are not m1 optimised tends to write more on Swap which will reduce the SSD lifespan gradually. There might be other arguments on that but this my analysis ... I have found, Zulu has M1 Silicon Optimised OpenJDK which no longer requires Rosetta support. https://www.azul.com/downloads/?version=java-11-lts&os=macos&architecture=arm-64-bit&package=jdk More replies More replies More replies
🌐
GitHub
github.com › orgs › Homebrew › discussions › 2405
mac version 11.6 , M1, brew install openjdk@11 · Homebrew · Discussion #2405
echo $JAVA_HOME /opt/homebrew/Cellar/openjdk@11/11.0.16/libexec/openjdk.jdk/Contents/Home java --version openjdk 11.0.16 2022-07-19 OpenJDK Runtime Environment Homebrew (build 11.0.16+0) OpenJDK 64-Bit Server VM Homebrew (build 11.0.16+0, mixed mode)
🌐
Homebrew
formulae.brew.sh › formula › openjdk@11
Homebrew Formulae: openjdk@11
brew install openjdk@11 · Also known as: java11 · Development kit for the Java programming language · https://openjdk.org/ License: GPL-2.0-only · Development: Pull requests · Formula JSON API: /api/formula/openjdk@11.json · Formula code: ...
🌐
Tutorials24x7
tutorials24x7.com › java › how-to-install-java-11-on-mac
How To Install Java 11 On Mac | Tutorials24x7
April 22, 2020 - Double click the DMG file downloaded in the previous step to start installing Oracle JDK 11 on Mac. It will mount the DMG disk and shows the installer as shown in Fig 6 and Fig 7. Make sure that you have gone through the updated License Agreement ...
🌐
Medium
medium.com › @dimitrios_ › brew-your-java-on-a-m1-a-quick-guide-c28d17f2d256
Brew your java on a M1: A Quick Guide | by Jim Kapsalis | Medium
September 30, 2024 - Installing the Java runtime can be done in a few simple step! ... Open Terminal and run the following command (It can also be found on the Brew website). Follow the instructions during the installation to add brew to your path, if you wish to.
🌐
GitHub
gist.github.com › douglarek › bbda8cc23a562cb5d5798717d57bc9e9
How to install openJDK 11 on macOS - Gist - GitHub
Using mac os Big sur, I had to add the environment variable export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home" in my ~/.zshrc file for it to work
🌐
Code2care
code2care.org › home › q › install native java jdk jre on apple silicon m1 mac
Install Native Java JDK JRE on Apple Silicon M1 Mac | Code2care
January 26, 2026 - If you want to run Java JDK or JRE natively on M1 Mac you can make use of Azul Zulu Builds for Java JDK/JREs, Go to: https://www.azul.com/downloads/zulu-community/?package=jdk if you want to install JDK or https://www.azul.com/downloads/zul...
🌐
GitHub
gist.github.com › drm317 › 3e2a9ce4ba1288c4fbaab1e534d71133
OpenJDK 11+ on MacOS X · GitHub
The installation directory is /Library/Java/JavaVirtualMachines/ which is the traditional location on MacOSX ... Matching Java Virtual Machines (2): 11, x86_64: "OpenJDK 11" /Library/Java/JavaVirtualMachines/openjdk-11.jdk/Contents/Home 1.8.0_45, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home
🌐
Medium
medium.com › @rajkanchole1 › how-to-install-java-11-on-macos-a-step-by-step-guide-02ab0969ff78
How to Install Java 11 on macOS: A Step-by-Step Guide | by Rajj Kannchole | Medium
October 21, 2024 - How to Install Java 11 on macOS: A Step-by-Step Guide The below steps will help you in install Java 11 on your Mac machine. Step 1: Install Homebrew Homebrew is a package manager that makes …
🌐
Oracle
java.com › en › download › apple.jsp
Java for Mac
下载适用于 macOS ARM64 的 Java 下载 Java 表示贵方确认已阅读并接受适用于 Oracle Java SE 的 Oracle 技术网许可协议的条款。 Oracle Java 许可重要信息.
🌐
Groups.io
groups.io › g › jmriusers › topic › installing_java_via_homebrew › 99910198
jmriusers@groups.io | Installing Java via Homebrew
October 31, 2023 - You logged in using a passkey from another device. For faster access next time, add a passkey to this device · I am documenting how to install Java11 on macOS via homebrew, so that this topic will pop up via search if you run into problems (like I did)
Top answer
1 of 2
10

tl;dr

If you are an end-user needing a free-of-cost JVM to run a Java app on your Mac (rather than a developer), my personal recommendation is to download an .pkg file from AdoptOpenJDK.

Open that file to run a macOS installer.

You will then find a JVM installed in /Library/Java/JavaVirtualMachines. Later, you can upgrade in the same manner, deleting the old JVM from that folder.

Details

Yes, there have been several major changes to the evolution of Java in recent years, and they can be a bit confusing.

Multiple vendors, both free and paid

First, know that there are new options available for those wishing to pay for commercially supported implementations of Java. And know that Java is still available freely without cost. For both a summary as well as the gory details, read this white paper published by major figures in the Java community: Java Is Still Free

OpenJDK

Secondly, know that all releases for Java 11 and later for macOS are based on the same codebase, the open-source project known as OpenJDK.

Apple contributes Mac-specific code to this project, and has staff working on this to make sure that Java continues to work well on macOS.

IBM, Oracle, and many other companies have contributed code and testing as well. Oracle has recently announced their intention to reach feature-parity between their own Oracle-branded Java releases and the OpenJDK product; this even included the donation of some of their previously-commercial tools such as Flight Recorder to OpenJDK.

The upshot is that you should see very similar behavior and features across the various sources of Java for macOS.

JVM bundled within desktop apps

If you make desktop apps to run locally on a Mac or other computer, you may continue to do so, and keep on using Swing and/or JavaFX as always. But the delivery of your app will change.

Java Applet and Java Web Start technologies are being phased out. Oracle will no longer encourage end-users to have a JVM by itself installed. Instead, Oracle advises building your app as a standalone executable with a JVM bundled inside. This has already been commonly done on Macs, especially so if delivering an app through the Apple App Store. That approach is the new normal, to be done across all platforms including macOS, Windows, Linux, etc. The new Java Modularization technology that began with Java 9, including the jlink and jpackage tools, make it easier than ever to bundle a down-sized JVM with your app.

For more info, see the white paper Java Client Roadmap Update of 2018-03.

So, for the purpose of bundling with your app, you will need to consider redistribution/deployment rights when choosing a JVM vendor and product.

Choosing a vendor

Some major vendors of Java to consider for Java 11 and later:

  • Azul Systems
    Offering two product lines, Zulu based directly on OpenJDK with possibly a few tweaks, and Zing a specially-enhanced version of the Java platform.
  • Oracle
    Offering their own commercial product Oracle JDK and the quite-similar free-of-cost and GPL-licensed jdk.java.net.
  • AdoptOpenJDK.net
    Offering free-of-cost builds of Java based on OpenJDK. Choose between with the usual HotSpot engine (just-in-time compiler & optimizer) or the OpenJ9 engine from Eclipse (previously from IBM).

Here is a diagram chart that may help guide your decision-making. This chart is not necessarily complete or accurate. It is simply meant to help get you oriented. You should research further your options.


SDKMAN!

A subset of the vendors listed above choose to send their release information to the SDKMAN! project for your convenience.

SDKMAN! is an amazingly simple utility to locate, download, install, and uninstall JDKs, JREs, and other software kits such as Apache Maven, Gradle, etc.

If your JDK/JRE of choice is available via SDKMAN!, then I highly recommend that route.

2 of 2
6

If you want to have the simplest life possible, install homebrew and then install java with brew cask install java.