23

I am trying to have JDK 8 run with cassandra 3.x in my dev-setup Mac with M1Pro Chip. Arm64 jdk-8 is currently unavailable currently.

Sahil Ummer
  • 455
  • 1
  • 2
  • 9

4 Answers4

34

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.

brew tap homebrew/cask-versions
brew install --cask zulu8

It will install the JDK in /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home. You should then configure your JAVA_HOME variable for development tools to use it.

export JAVA_HOME=`/usr/libexec/java_home -v 1.8`

Please note that Zulu Community 8 will only be supported until March 2026.

bekce
  • 3,782
  • 29
  • 30
7

You can run Java for Intel Macs on Apple Silicon (ARM, Aarch64) via Rosetta 2.

But for maximum performance, obtain an implementation of Java 8 built for Apple Silicon Macs.

Arm64 jdk-8 is currently unavailable currently.

Not true.

You have a choice of vendors. I know Azul Systems provides such products. And others do as well. Try vendors providing JDK products, to see if they offer Java 8 on Apple Silicon Macs. Try vendors such as Pivotal, Microsoft, Amazon, SAP, BellSoft, Oracle, IBM, Red Hat, and more.

Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154
7

you can try the https://www.azul.com/downloads/. Install the arm version using sdkman.

Dolphin
  • 29,069
  • 61
  • 260
  • 539
0

Another option to have Java8 brew install adoptopenjdk8 or brew install --cask temurin8

fuat
  • 1,484
  • 2
  • 19
  • 25