Temurin 11 is on Homebrew
Tuesday, May 24th, 2022This morning I decided to see if I could get the AdoptOpenJDK 11, now called Temurin 11, going on my M1Max MacBook Pro. In the past, they have had the AdoptOpenJDK 11 on Homebrew, but it was Intel, and I didn't want to bring in Rosetta 2 for any Clojure work, so I was willing to wait. I read on Twitter from the Eclipse Foundation that they had placed Java 11 and 8 for Apple Silicon on Homebrew, so why not?
It turns out, it's not bad at all:
$ brew tap homebrew/cask-versions $ brea install --cask temurin11
and it's ready to go. Then I can use my setjdk function to switch between JDK 11 and 17 on my laptop, which is nice when there are some issues I've had to deal with in the past. Don't know when I'll need this again.
Sadly, the architecture for JDK 8 is still Intel:
$ brew info temurin8 temurin8: 8,332,09 https://adoptium.net/ Not installed From: https://github.com/Homebrew/homebrew-cask-versions/blob/HEAD/Casks/temurin8.rb ==> Name Eclipse Temurin 8 ==> Description JDK from the Eclipse Foundation (Adoptium) ==> Artifacts OpenJDK8U-jdk_x64_mac_hotspot_8u332b09.pkg (Pkg)
that last line is the kicker: x64... so it goes. Still... I have JDK 11 for Apple Silicon now, that's good. 🙂