Oscar Franco

How to install M1 (arm) compatible JDK

Dec 2021

Recently found out a nice trick to easily install a compatible JDK on mac without scouring the internet or brew formulas.

You can directly do it via Android Studio (or intellij IDEA), just go into the preferences and on the build tools > gradle menu, you can select which version of the JDK you want to use, if you open the dropdown you will see there is also an option to download a JDK.

Android Studio 1

Click on it and you will get a small dialog were you can select the flavor of JDK you want, I know for certain that the Azul versions are arm compatible.

Android Studio 2

(BTW I’m using the Android Studio Preview to get native arm android images)

Very convenient!