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
🌐
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 - brew tap adoptopenjdk/openjdk && brew install --cask adoptopenjdk8 · 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 ...
🌐
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
Discussions

macos - How to install Java 8 on Mac - Stack Overflow
Editors note: This question was asked in 2014, and the answers may be outdated. I want to do some programming with the latest JavaFX, which requires Java 8. I'm using IntelliJ 13 CE and Mac OS X 9 More on stackoverflow.com
🌐 stackoverflow.com
java - Will x64 jdk-1.8 work in Mac with Apple Silicon (M1) Chip? - Stack Overflow
I am trying to have JDK 8 run with ... Mac with M1Pro Chip. Arm64 jdk-8 is currently unavailable currently. ... Save this answer. ... Show activity on this post. Homebrew does not support OpenJDK@8 on Apple Silicon (M1/M2) but Zulu Community 8 is present as a cask. You just have to enable cask-versions repository and install zulu8 cask. Copybrew tap homebrew/cask-versions brew install --cask zulu8 · It will install the JDK in /Library/Java/JavaVirtu... 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
Java on Macbook with M1 chip
If you're using homebrew (which I would recommend) then just do "brew install java" More on reddit.com
🌐 r/macbookpro
6
4
January 31, 2022
🌐
DEV Community
dev.to › shane › configure-m1-mac-to-use-jdk8-with-maven-4b4g
Configure M1 Mac to use JDK8 with Maven - DEV Community
July 10, 2023 - You can instructions on downloading Brew here https://brew.sh/ or by simply running this script in your terminal · /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ... We need to get a version ...
🌐
GitHub
gist.github.com › tomysmile › a9a7aee85ff73454bd57e198ad90e614
How To Install Java 8 on Mac · GitHub
The above command will create a .java-version file at project root. Its content is the version I just picked for this project: ... it needs to be added in order to work else you'll be getting /.jenv/versions/oracle64-1.7.0.80: No such file or directory ... Thanks, great write up! ... When I run "brew cask info java7" its automatically installing "jdk1.7.0_80" but I need "jdk1.7.0_79".
🌐
Feliciano
feliciano.tech › blog › install-java8-on-macos
How to Install Java 8 on macOS | Feliciano.Tech
January 24, 2023 - Let's get straight to the “how” and stick around if you want to know the “why”. 1brew tap homebrew/cask-versions 2brew install --cask temurin8 Now here's some information on why this works and what it does.
🌐
Code2care
code2care.org › home › java › install openjdk java (8/11/17) versions using brew on mac (intel/m1/m2)
Install OpenJDK Java (8/11/17) versions using brew on Mac (Intel/M1/M2) | Code2care
January 26, 2026 - Error: openjdk@8: An unsatisfied requirement failed this build. You will need to go for other vendors like azul. brew tap homebrew/cask-versions brew install --cask zulu8 Installing Java JDK 11
Find elsewhere
🌐
DevQA
devqa.io › brew-install-java
How to Use Brew to Install Java on Mac
If not, you can install it via: $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" If you already have brew installed, make sure you have the latest version by running the following command in a terminal
🌐
DEV Community
dev.to › khairunnaharnowrin › install-java-in-macbook-m1m2m3-58fd
Install Java in macbook M1/M2/M3 - DEV Community
July 8, 2024 - (echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> /Users/user_name/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)" ... Install JDK using Homebrew: Once Homebrew is installed, you can install the JDK for ARM-based Macs by running the following command: bash ... This will install the Temurin JDK, which is compatible with ARM-based Macs. Verify Installation: After installation, you can verify that Java is installed by running: bash
🌐
Adam the Automator
adamtheautomator.com › install-java-on-mac
How to Install Java on Mac
November 30, 2022 - Getting detailed information about the java formula · 4. Now, run the following brew install command to install java on your Mac.
🌐
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 - ... 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. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"...
🌐
Baeldung
baeldung.com › home › java › install java on macos
Install Java on macOS | Baeldung
April 14, 2024 - % /usr/libexec/java_home -V Matching Java Virtual Machines (3): 17.0.10 (x86_64) "Oracle Corporation" - "Java SE 17.0.10" /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home 11.0.12 (x86_64) "Oracle Corporation" - "Java SE 11.0.12" /Library/Java/JavaVirtualMachines/jdk-11.0.12.jdk/Contents/Home 1.8.0_401 (x86_64) "Oracle Corporation" - "Java SE 8" /Library/Java/JavaVirtualMachines/jdk-1.8.jdk/Contents/Home /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home · Another way to install Java is via the command line. To accomplish this, we can use Homebrew, a popular package manager for macOS. Let’s see the steps for installing OpenJDK using Homebrew. Before we start, first, let’s make sure Homebrew is installed and up-to-date: ... % brew search openjdk ==> Formulae openjdk ✔ openjdk@11 openjdk@17 ✔ openjdk@8 openj9 openjph openvdb ==> Casks adoptopenjdk
🌐
Homebrew
formulae.brew.sh › formula › openjdk
Homebrew Formulae: openjdk
Also known as: java, openjdk@26 · Development kit for the Java programming language
🌐
Medium
medium.com › @kkrajpurohit007 › install-jdk-multiple-version-on-apple-silicon-chip-m1-m2-9a9d90954be3
Install JDK multiple version Apple Silicon chip (M1/M2) | by kkrajpurohit | Medium
July 16, 2023 - Installing jdk 11 and 8 $ brew install — cask adoptopenjdk11 adoptopenjdk8 · Installtion running command in terminal if asking during instllation of jdk8 and jdk11 $ softwareupdate — install-rosetta ... add these two commands in zshrc $ ...
🌐
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.
🌐
GitHub
gist.github.com › pigeonflight › 0d850916aca37b0c4522682c2ca1a332
Installing Java8 on Mac with Homebrew · GitHub
Installing Java8 on Mac with Homebrew. GitHub Gist: instantly share code, notes, and snippets.
🌐
MAC Address Lookup
aruljohn.com › home › articles › tech
How to Install OpenJDK Java 8 on MacOS using Homebrew in 2025
September 26, 2025 - If you do not have homebrew installed, ... need to run the homebrew install script as admin or root user. It will fail if you do not have admin rights. The homebrew command to install Adopt OpenJDK 8 or 1.8 keeps changing. ... $ brew install --cask adoptopenjdk/openjdk/adoptopenjdk8 ==> Auto-updating ...
🌐
Mkyong
mkyong.com › home › java › how to install java jdk on macos
How to install Java JDK on macOS - Mkyong.com
January 19, 2021 - This article shows how to install Java JDK on macOS, Homebrew package manager, manual installation, and switch between different JDK versions.
🌐
JanBask Training
janbasktraining.com › community › java › how-to-install-java-8-on-mac
How to install Java 8 on Mac ? | JanBask Training Community
July 26, 2021 - Install whatever version you want with cask brew cask install java8 (or java7 or java if you want to install the latest version, jdk9) Oracle has a poor record for making it easy to install and configure Java, but using Homebrew, the latest ...