🌐
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 · To confirm installed Java version, ...
🌐
Reddit
reddit.com › r/mac › unable to install java 8 on mbp m4
r/mac on Reddit: Unable to install Java 8 on MBP M4
January 13, 2025 -

Hello,

I need Java for some applications and I just downloaded the latest Java installer (jre-8u431-macosx-aarch64) from Oracle aaand … it's not installing. It tries to install and says something like java could not be installed and "OS error code 1".

I searched for hours on Google and couldn't find anything. Did anyone have a solution to this? I'm running Sequoia 15.2.

Discussions

Trouble Installing Java 8 on MacBook with M4 Chip (macOS Sequoia) + CertiSign Support
I am curious why you say that Java 8 doesn't officially support ARM when there is a macOS ARM64 (Version 8 Update 461, Release date: July 15, 2025, Filesize: 46.05 MB). Having said that, I keep having a problem installing the macOS ARM64 version. I am just downloading the installer from Oracle. Why do you think that it may not be working properly? More on reddit.com
🌐 r/MacOS
3
4
September 26, 2025
macos - Java/JDK for the Apple Silicon chips - Stack Overflow
Will there need to be a special release of OpenJDK to support the new Apple Silicon chips? I see that there are currently downloads of the JDK for macOS/OS X, but these seem to only be for x86 proc... More on stackoverflow.com
🌐 stackoverflow.com
Java for m1/m2, apple silicon, amd64 on mac ventura 13.2.1
How to install 32-bit Java on my 64-bit Mac running on Macbook Pro Centura 13.4 I need 32-bit JRE Java on my Mac to run some features of an Applet (through jnlp) I have validated that application runs fine on WINDOWS with 32 bit JRE, is there a way to install it (without Boot Camp installation ... More on discussions.apple.com
🌐 discussions.apple.com
macos - How do I install Java on Mac OSX allowing version switching? - Stack Overflow
I want to install OpenJDK Java on Mac OSX and have it work alongside other JDK's since it is a newer release. Currently, I downloaded the tar.gz and placed it in my path but that is hard to mainta... More on stackoverflow.com
🌐 stackoverflow.com
🌐
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 - Developers and those who want to ...ds/#jdk22-mac and get the ARM64 Compressed Archive or wget/curl the compressed tarball file, and unpack it, then browse to “/Library/Java/JavaVirtualMachines/” and plunk it there, it will prompt the system’s pass. After which it is installed and ready to be used, java –version will show so. Avoid headless! ... Click here to cancel reply. « Get the New M4 iPad Pro & ...
🌐
Oracle
java.com › en › download › help › java_mac.html
Installing and using Oracle Java on macOS
How do I enable Java on my Mac? When you install Oracle Java on your Mac (Lion and above), Java will be enabled by default. If you are running a Java application in the browser, you will need to also check that Java is enabled in your browser. For earlier versions of Java, check Apple support site.
🌐
Mac Install Guide
mac.install.guide › java › apple-silicon
Java on Apple Silicon or Intel Macs · Mac Install Guide · 2026
Java on Apple Silicon M-series or Intel Macs. How to install the correct Java version for your chip, verify ARM64 architecture, and configure for differences.
🌐
Mac Install Guide
mac.install.guide › java › download
Download Java for Mac · Mac Install Guide · 2026
If you see Apple M1, M2, M3, M4, or M5, you have an Apple Silicon Mac. You'll need the Java ARM64 version (labeled "aarch64" on download pages). Intel Mac users should download the x64 version instead.
🌐
Super User
superuser.com › questions › 1891922 › why-doesn-t-java-arm64-install-on-my-macbook-air-m4
macos - Why doesn’t Java (Arm64) install on my MacBook Air M4? - Super User
April 13, 2025 - Except you specifically said, “I’ve already made sure it’s the correct file (for Arm64, not Intel).”, but turns out it was the Intel file. I had no problem finding an ARM version of Java 8 Update 441 and Java 17+. ... Find the answer to your question by asking. Ask question ... See similar questions with these tags. ... Code isn’t the only thing causing your production... Paging Charity! How can engineering leaders avoid becoming Bond... ... 0 Having trouble creating symlink between the terminal in Mac OS X and Sublime Text 2 so it can be launched from the command line
🌐
Reddit
reddit.com › r/macos › trouble installing java 8 on macbook with m4 chip (macos sequoia) + certisign support
r/MacOS on Reddit: Trouble Installing Java 8 on MacBook with M4 Chip (macOS Sequoia) + CertiSign Support
September 26, 2025 -

Hi everyone,

I'm having an issue and would really appreciate some help from the community.

I have a MacBook with the Apple M4 chip, running macOS Sequoia, and I need to install a digital certificate that depends on Java 8. The problem is that Java 8 doesn't officially support ARM (Apple Silicon), only x86/x64 architectures.

I tried installing Java 8 via Homebrew, and the installation completed successfully. When I run java --version, it shows that JDK 1.8 is installed. However, I'm not sure if it's actually working properly or if it's using some compatibility layer like Rosetta.

In addition, I also need to install the CertiSign Digital Certificate, which specifically requires Java 8 to be working correctly — and that’s where the second part of the problem begins.

Has anyone managed to get this working on macOS Sequoia with the M4 chip?
If anyone has a working guide or solution to install Java 8 and get CertiSign running properly, I’d be extremely grateful!

tks guys

Find elsewhere
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.
🌐
Medium
medium.com › @aniketvishal › how-to-install-java-and-setup-java-home-path-in-macos-apple-silicon-m1-m2-2edf185b992c
How to install Java 21 and setup JAVA_HOME Path in macOS 🍏 (Apple Silicon) | by Aniket Vishal | Medium
October 22, 2024 - Therefore, you need to download a Java version that’s compatible with Apple Silicon. Open your web browser and open the Java Downloads section on Oracle website. Select the “Latest Java Release” for macOS.
🌐
Oracle
java.com › en › download › apple.jsp
Java for Mac
下载适用于 macOS ARM64 的 Java 下载 Java 表示贵方确认已阅读并接受适用于 Oracle Java SE 的 Oracle 技术网许可协议的条款。 Oracle Java 许可重要信息.
🌐
Oracle
docs.oracle.com › en › java › javase › 22 › install › installation-jdk-macos.html
4 Installation of the JDK on macOS
March 14, 2024 - The JDK supports both Intel-based (x64) and Apple Silicon (AArch64) Mac computers.
🌐
Apple Community
discussions.apple.com › thread › 254771070
Java for m1/m2, apple silicon, amd64 on mac ventura 13.2.1
How can you get Java for Apple Silicon? The support website (Get Java for your Mac - Apple Support) links to Oracle, which provides an Intel-compatible Java only.
🌐
Mac Install Guide
mac.install.guide › java › new
Java Latest Version · Mac Install Guide · 2026
Read Install Java 25 on Mac for details and code examples. Java 25 runs natively on Apple Silicon Macs. All M-series chips (M1, M2, M3, M4, and M5) are fully supported with ARM64/aarch64 builds.
🌐
Java With Us
javawithus.com › home › faq › how to download java on mac: official sources
How to Download Java on Mac: Official Sources | Java With Us
April 21, 2026 - Download Java on Mac from an official source: adoptium.net (Temurin), Homebrew, or Amazon Corretto. Pick the architecture that matches your Mac: aarch64 for Apple Silicon (M1/M2/M3/M4), x64 for Intel.
🌐
Mac Install Guide
mac.install.guide › java
Java on Mac · Mac Install Guide · 2026
Set JAVA_HOME on Mac — Understand ... — Decide which LTS version to use for your projects · Java predates the Apple M1, M2, M3, M4, M5 chip series (ARM64 processors), dating from the days when Apple used ......
Top answer
1 of 11
1214

Note: These solutions work for various versions of Java including Java 8 through Java 21 (the LTS version). This includes alternative JDK's from OpenJDK, Oracle, IBM, Azul, Amazon Correto, Graal and more.

You have a few options for how to do the installation as well as manage JDK switching. Installation can be done by Homebrew, SDKMAN, asdf, or a manual install. Switching can be done by SDKMAN, asdf, or manually by setting JAVA_HOME. All of these are described below.


TL;DR - Preferred Methods of Installation

You can install Java using whatever method you prefer including SDKMAN, asdf, Homebrew, or a manual install of the tar.gz file. The advantage of a manual install is that the location of the JDK can be placed in a standardized location for Mac OSX.

However, there are easier options such as SDKMAN and asdf that also will install other important and common tools for the JVM. These two primary options are described here.

Installing and Switching versions with SDKMAN

SDKMAN is a bit different and handles both the install and the switching. SDKMAN also places the installed JDK's into its own directory tree, which is typically ~/.sdkman/candidates/java. SDKMAN allows setting a global default version, and a version specific to the current shell.

  1. Install SDKMAN from https://sdkman.io/install

  2. List the Java versions available to make sure you know the version ID

    sdk list java
    
  3. Install one of those versions, for example, Java 21 LTS:

    sdk install java 21-open 
    

    Or java 19:

    sdk install java 19.0.2-open
    
  4. Make Java 17 the default version:

    sdk default java 17-open
    

    Or switch to 17 for the current terminal session:

    sdk use java 17-open
    

When you list available versions for installation using the list command, you will see a wide variety of distributions of Java:

sdk list java

And install additional versions, such as JDK 11 from Amazon:

sdk install java 11.0.14.10.1-amzn

SDKMAN can work with previously installed existing versions. Just do a local install giving your own version label and the location of the JDK:

sdk install java my-local-13 /Library/Java/JavaVirtualMachines/jdk-13.jdk/Contents/Home

And use it freely:

sdk use java my-local-13

SDKMAN will automatically manage your PATH and JAVA_HOME for you as you change versions. And as a note, it installs Java versions to ~/.sdkman/candidates/java/.

More information is available in the SDKMAN Usage Guide along with other SDK's it can install and manage such as Gradle, Maven, Kotlin, Quarkus, Spring Boot, and many others.


Installing and Switching versions with "asdf"

asdf is a version manager that supports installing and managing most languages, frameworks, and developer/devops tools. It has language specific plugins including one for Java.

  1. First, install asdf via https://asdf-vm.com/guide/getting-started.html (read there to setup your shell correctly), or more simply:

    brew reinstall asdf
    

    and read the doc for setting up your shell correctly, but if you are using asdf from Homebrew with ZSH you can execute this command to finish setup:

    echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ${ZDOTDIR:-~}/.zshrc
    
  2. Then install the Java plugin via https://github.com/halcyon/asdf-java

    asdf plugin add java
    

    and read the doc for setting up your shell correctly before continuing. Basically it says to add the following to your ~/.zshrc file (assuming you are not using another shell):

    . ~/.asdf/plugins/java/set-java-home.zsh
    
  3. Now list Java versions:

    asdf list-all java
    
  4. Install your favorite flavor and version:

    asdf install java openjdk-21
    

    or install the latest:

    asdf install java latest
    

Other important commands are...

  • List your installed versions:

    asdf list java
    
  • Set a global Java version:

    asdf global java openjdk-21
    
  • Set a local Java version for a directory:

    asdf local java openjdk-19
    

It's that easy! asdf will automatically manage your PATH and JAVA_HOME for you as you change versions. As a note, asdf installs Java versions to ~/.asdf/installs/java.

There are other languages and plugins for asdf here from the repository page: https://github.com/asdf-vm/asdf-plugins


Other Methods of Installation

Install with Homebrew

The version of Java available in Homebrew Cask previous to October 3, 2018 was indeed the Oracle JVM. Now, however, it has now been updated to OpenJDK. Be sure to update Homebrew and then you will see the lastest version available for install.

  1. install Homebrew if you haven't already. Make sure it is updated:

     brew update
    
  2. Add the casks tap:

     brew tap homebrew/cask-versions
    

    These casks change their Java versions often, and there might be other taps out there with additional Java versions.

  3. Look for installable versions:

     brew search java  
    

    or for Eclipse Temurin versions:

     brew search temurin     
    
  4. Check the details on the version that will be installed:

     brew info java
    

    or for the Temurin version:

     brew info temurin
    
  5. Install a specific version of the JDK such as java11, temurin8, temurin11, temurin17, or just java or temurin for the most current of that distribution. For example:

     brew install java
    
     brew install --cask temurin
    

And these will be installed into /Library/Java/JavaVirtualMachines/ which is the traditional location expected on Mac OSX. There might be additional steps to make the JDK active reported at the end of the install process.

Install manually from OpenJDK download page:

If you need any and every version of Java, this is a good place to look.

  1. Download OpenJDK for Mac OSX from http://jdk.java.net/ (for example Java 17 and Java 21)

  2. Unarchive the OpenJDK tar, and place the resulting folder (i.e. jdk-19.jdk) into your /Library/Java/JavaVirtualMachines/ folder since this is the standard and expected location of JDK installs. You can also install anywhere you want in reality.

  3. Set JAVA_HOME environment variable to point at direction where you unarchived the JDK.

For further information see the answer specific to manual installation. Also see the section below "Switching versions manually" for more information on how to manage multiple manual installations.

Other installation options:

Some other flavours of OpenJDK are:

Azul Systems Java Zulu certified builds of OpenJDK can be installed by following the instructions on their site.

Zulu® is a certified build of OpenJDK that is fully compliant with the Java SE standard. Zulu is 100% open source and freely downloadable. Now Java developers, system administrators, and end-users can enjoy the full benefits of open source Java with deployment flexibility and control over upgrade timing.

Amazon Correto OpenJDK builds have an easy to use an installation package for Java 8, 11, 17, and Java 21. It installs to the standard /Library/Java/JavaVirtualMachines/ directory on Mac OSX.

Amazon Corretto is a no-cost, multiplatform, production-ready distribution of the Open Java Development Kit (OpenJDK). Corretto comes with long-term support that will include performance enhancements and security fixes. Amazon runs Corretto internally on thousands of production services and Corretto is certified as compatible with the Java SE standard. With Corretto, you can develop and run Java applications on popular operating systems, including Linux, Windows, and macOS.

Microsoft Java JDK - certified builds of OpenJDK from Microsoft.


Where is my JDK?!?!

To find locations of previously installed Java JDK's installed at the default system locations, use:

/usr/libexec/java_home -V

Matching Java Virtual Machines (4):
19 (x86_64) "Homebrew" - "OpenJDK 19" /usr/local/Cellar/openjdk/19/libexec/openjdk.jdk/Contents/Home
18.0.1.1 (x86_64) "Homebrew" - "OpenJDK 18.0.1.1" /usr/local/Cellar/openjdk/18.0.1.1/libexec/openjdk.jdk/Contents/Home
17 (x86_64) "Homebrew" - "OpenJDK 17" /usr/local/Cellar/openjdk/17/libexec/openjdk.jdk/Contents/Home
11, x86_64: "Java SE 11" /Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home
1.8.301.09 (x86_64) "Oracle Corporation" - "Java" /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home /usr/local/Cellar/openjdk/17/libexec/openjdk.jdk/Contents/Home

You can also report just the location of a specific Java version using -v. For example for Java 17:

/usr/libexec/java_home -v 17

/usr/local/Cellar/openjdk/17/libexec/openjdk.jdk/Contents/Home

Knowing the location of the installed JDK's is also useful when using tools like JEnv, or adding a local install manually to SDKMAN -- and you need to know where to find them.

If you need to find JDK's installed by other tools, check these locations:

  • SDKMAN installs to ~/.sdkman/candidates/java/
  • asdf install to ~/.asdf/installs/java

Version Switching

If you are using SDKMAN or asdf you are already covered and can stop reading! Otherwise, here are some options to switch existing VM installations.

Switching versions manually

The Java executable is a wrapper that will use whatever JDK is configured in JAVA_HOME, so you can change that to also change which JDK is in use.

For example, if you installed or untar'd JDK 16 to /Library/Java/JavaVirtualMachines/jdk-16.jdk if it is the highest version number it should already be the default, if not you could simply set:

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-16.jdk/Contents/Home

And now whatever Java executable is in the path will see this and use the correct JDK.

A simple way to change JDKs is to create a function in your ~/.bashrc or ~/.zshrc file:

jdk() {
    version=$1
    export JAVA_HOME=$(/usr/libexec/java_home -v"$version");
    java -version
}

And then change JDKs simply by:

jdk 1.8
jdk 9
jdk 11
jdk 13

Edits:

  • removed Jabba and JENV as both appear to have stagnated, issue count is climbing dramatically, and issues/PR's are not being addressed by the maintainers.
2 of 11
41

This is how I did it.

Step 1: Install Java 11

You can download Java 11 dmg for mac from here: https://www.oracle.com/technetwork/java/javase/downloads/jdk11-downloads-5066655.html

Step 2: After installation of Java 11. Confirm installation of all versions. Type the following command in your terminal.

Copy/usr/libexec/java_home -V

Step 3: Edit .bash_profile

Copysudo nano ~/.bash_profile

Step 4: Add 11.0.1 as default. (Add below line to bash_profile file).

Copyexport JAVA_HOME=$(/usr/libexec/java_home -v 11.0.1)

to switch to any version

Copyexport JAVA_HOME=$(/usr/libexec/java_home -v X.X.X)

Now Press CTRL+X to exit the bash. Press 'Y' to save changes.

Step 5: Reload bash_profile

Copysource ~/.bash_profile

Step 6: Confirm current version of Java

Copyjava -version
🌐
Lucee Dev
dev.lucee.org › support
Setting up on new Mac mini m4 - support - Lucee Dev
January 13, 2025 - Don’t forget to tell us about your stack! OS: Sequoia 15.2 Java Version: ??? Tomcat Version: ??? Lucee Version: Express 6 Have been using Lucee successfully on older Macbook pro but time to update. Installed Java and downloaded Lucee Express 6 and… alan@Alans-Mac-mini lucee-express-6 % ./startup.sh Using CATALINA_BASE: /Users/alan/downloads/lucee-express-6 Using CATALINA_HOME: /Users/alan/downloads/lucee-express-6 Using CATALINA_TMPDIR: /Users/alan/downloads/lucee-express-6/temp ...
🌐
Oracle
java.com › en › download › help › mac_controlpanel.html
Where is the Java Control Panel on my Mac?
The Control Panel allows you to find information about Java version and configure various settings to help you efficiently run Java on your Mac. About Java: View information about the Java version · Network Settings: By default, Java will use the network settings in your web browser. You can set preferences including proxy servers in this setting. Temporary Internet Files: Files used in Java applications are stored in a special folder, called a cache, for quick execution later.
🌐
Oracle
docs.oracle.com › javase › 8 › docs › technotes › guides › install › mac_jdk.html
JDK 8 Installation for macOS
April 21, 2026 - This page describes how to install and uninstall JDK 8 for macOS computers.