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?
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
🌐
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.
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
15
2
January 13, 2025
java - Will x64 jdk-1.8 work in Mac with Apple Silicon (M1) Chip? - Stack Overflow
Try these vendors providing JDK products, to see if they offer Java 8 on Apple Silicon Macs: ... I enjoy using the console app SDKMAN! to easily find, download, install, and uninstall JDKs from a subset of the vendors listed above. More on stackoverflow.com
🌐 stackoverflow.com
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
🌐
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.
🌐
Oracle
java.com › en › download › apple.jsp
Download Java
» Java 是什么 » 删除旧版本 » Mac 常见问题 » 安全性 » Support » 其他帮助 · 此下载用于帮助那些需要使用 Java 在台式机和笔记本电脑上运行应用程序的最终用户。Java 8 与操作系统集成在一起以运行单独安装的 Java ...
🌐
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
Find elsewhere
🌐
SysTools
systoolsgroup.com › mac › how-to-install-jdk.html
How to Download & Install JDK & JRE on Mac OS?
Now go to Finder >> Open your Downloads Folder (or from the Downloads window of the browser). And double-click on jdk-8u241-macosx-x64.dmg to launch it.
🌐
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.
🌐
apponic
java-se-runtime-environment-8.apponic.com › mac › download
Free Download Java SE Runtime Environment 8 for Mac
March 2, 2026 - Free Download Java SE Runtime Environment 8 for Mac - Java runtime environment from Oracle.
🌐
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.
🌐
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.
🌐
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.
🌐
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.

🌐
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.
🌐
Bell Software
bell-sw.com › pages › downloads
Download JDK 8, 11, 17, 21, 25, 26 | Java Builds for Linux, Windows and macOS
Download Liberica JDK, supported OpenJDK builds. Open source Java 8, 11 and more for Linux, Windows, macOS.