Oracle has a poor record for making it easy to install and configure Java, but using Homebrew, the latest OpenJDK (Java 14) can be installed with:

brew install --cask adoptopenjdk8

For the many use cases depending on an older version (commonly Java 8), the AdoptOpenJDK project makes it possible with an extra step.

brew tap adoptopenjdk/openjdk
brew install --cask adoptopenjdk8

Existing users of Homebrew may encounter Error: Cask adoptopenjdk8 exists in multiple taps due to prior workarounds with different instructions. This can be solved by fully specifying the location with brew install --cask adoptopenjdk/openjdk/adoptopenjdk8.

Answer from l3x on Stack Overflow
๐ŸŒ
Oracle
java.com โ€บ en โ€บ download โ€บ help โ€บ mac_install.html
How do I install Java for my Mac?
Note: Below instructions are specific to macOS Big Sur (11.x) 1. Download the jre-8u311-macosx-x64.dmg file.
Discussions

How to install Java on macOS Sonoma? - Apple Community
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. More on discussions.apple.com
๐ŸŒ discussions.apple.com
Unable to install Java 8 on MBP M4
Use brew.sh Also Java 8 isโ€ฆ extremely old More on reddit.com
๐ŸŒ r/mac
14
2
January 13, 2025
How can I install java openjdk 8 on High Sierra or newer macOS - Ask Different
How do I install OpenJDK 8 on High Sierra or newer macOS? It looks like support for the Java Oracle JDK version 8 will be deprecated after January 2019 Java SE Overview Additionally, it looks like More on apple.stackexchange.com
๐ŸŒ apple.stackexchange.com
Java Runtime for Apple Silicon
Yes. Search Java m1. I think azul does one as does adopt (these are based on openjdk) More on reddit.com
๐ŸŒ r/MacOS
12
8
September 3, 2022
๐ŸŒ
Dartmouth College
cs.dartmouth.edu โ€บ ~scot โ€บ cs10 โ€บ mac_install โ€บ mac_install.html
Installing Java 8 and Eclipse on Mac OS X
Scroll down until you see a heading beginning "Java SE 8u65/8u66." On the right, you'll see a Download button under the JDK header. Click it. The next screen will look like this: Click the radio button next to "Accept License Agreement" and then click on jdk-8u65-macosx-x64.dmg.
๐ŸŒ
DePaul University
facweb.cs.depaul.edu โ€บ sjost โ€บ it212 โ€บ documents โ€บ java-download-mac.htm
Download Directions for Mac, Java 8 JDK
In the Java SE Development Kit 8u201 section, download the file .dmg file for your operating system. For a Mac OS, 64-bit machine, download jdk-8u201-macosx-x64.dmg
๐ŸŒ
Oracle
java.com โ€บ en โ€บ download โ€บ help โ€บ java_mac.html
Installing and using Oracle Java on macOS
Download latest Java 8 from java.com. When I try to use java from the command line, why doesn't it work? I have Oracle's version of the JRE installed. Installing JRE from Oracle does not update java -version symlinks or add java to your path. For this functionality, you must install the full JDK.
Find elsewhere
๐ŸŒ
Macupdate
java-se-runtime-environment-8.macupdate.com โ€บ developer tools โ€บ programming languages โ€บ java se runtime environment 8
Download Java SE Runtime Environment 8 for Mac | MacUpdate
Download the latest version of Java SE Runtime Environment 8 for Mac for free. Read 4 user reviews and compare with similar apps on MacUpdate.
๐ŸŒ
Medium
erwinschleier.medium.com โ€บ install-jdk-8-and-setup-java-home-on-mac-m1-1b0ea243b05a
Install JDK 8 and Setup JAVA_HOME on Mac M1 | by Erwin Schleier | Medium
November 14, 2023 - And finally you can install JDK8. Therefore go to: https://www.azul.com/downloads/?version=java-8-lts&os=macos&architecture=arm-64-bit&package=jdk scroll down and download the .dmg file than execute it.
๐ŸŒ
Oracle
java.com โ€บ en โ€บ download โ€บ manual.jsp
Download Java
This download is for end users who need Java for running applications on desktops or laptops. Java 8 integrates with your operating system to run separately installed Java applications.
๐ŸŒ
SysTools
systoolsgroup.com โ€บ mac โ€บ how-to-install-jdk.html
How to Download & Install JDK & JRE on Mac OS?
Click on the close button and try launching any SysTools Mac based software. ... Open your Browser and go to the Oracle website. Go to the link given here: https://www.oracle.com/java/technologies/downloads/ ... Scroll down until you see a heading Java SE Development Kit 8u241 followed by a ...
๐ŸŒ
UCI ICS
ics.uci.edu โ€บ ~pattis โ€บ common โ€บ handouts โ€บ macpythoneclipsejava โ€บ java.html
Java Download and Installation Instructions
Click Java Downloads. The following page will appear in your browser. Click the Accept License Agreement radio button. Click jdk-8u60-macosx-x64.dmg in the "Download" column.
๐ŸŒ
Apple Community
discussions.apple.com โ€บ thread โ€บ 255283838
How to install Java on macOS Sonoma? - Apple Community
It reported that it found no Java to uninstall. Possibly running Uninstall before Install makes a difference? ... 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.
๐ŸŒ
Azul Systems
azul.com โ€บ home โ€บ azul downloads
Java 8, 11, 17, 21, 25 Download for Linux, Windows and macOS
February 25, 2026 - 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.
๐ŸŒ
Homebrew
formulae.brew.sh โ€บ formula โ€บ openjdk@8
openjdk@8 โ€” Homebrew Formulae
brew install openjdk@8 ยท Development kit for the Java programming language ยท https://openjdk.org/ License: GPL-2.0-only ยท Development: Pull requests ยท Formula JSON API: /api/formula/openjdk@8.json ยท Formula code: openjdk@8.rb on GitHub ...
๐ŸŒ
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.

๐ŸŒ
apponic
java-se-development-kit-8.apponic.com โ€บ mac
Java SE Development Kit 8 for Mac Free Download
March 7, 2026 - Java SE Development Kit 8 for Mac Free Download - Java development kit from Oracle.
๐ŸŒ
OpenLogic
openlogic.com โ€บ openjdk-downloads
OpenJDK Downloads | OpenLogic
OpenLogic now provides free, quarterly builds of OpenJDK 8, OpenJDK 11, OpenJDK 17, and OpenJDK 21 for Linux, Windows, and MacOS. ... Note: Open source OpenJDK is provided free of charge and "as is", without warranty of any kind, express or implied. In no event shall Perforce Software, Inc. or its affiliates be liable for any claim, damages, or other liability arising from out of or in connection with open source OpenJDK software downloaded from this site.