Install Native Java JDK JRE on Apple Silicon M1 Mac


Installing Native Java on Mac M1 Silicon
Installing Native Java on Mac M1 Silicon

If you are using M1 Macbook or Mac mini computer, you must have noticed that Java from Oracle is not yet build for M1 Silicon chip yet! So if you install Java from Oracle it will work but not natively - it will make use of Rosetta 2, you would see that the performance will take a hit.

If you want to run Java JDK or JRE natively on M1 Mac you can make use of Azul Zulu Builds for Java JDK/JREs,

  1. Go to: https://www.azul.com/downloads/zulu-community/?package=jdk if you want to install JDK or https://www.azul.com/downloads/zulu-community/?package=jre to install JRE.
  2. Select Java Version: (8, 9, 10, 11, 12, 13, 14, 15)
  3. Select Operating Sytem: macOS
  4. Select Architecture: ARM-64
  5. You will get links to download the setup as zip/dmg/tar.gz format - download anyone you prefer.
Azul Zulu builds for ARM 64-bit Architecture
Azul Zulu builds for ARM 64-bit Architecture

If you download the dmg package the installation is quite simple - Double click on Zulu.dmg file and on the popup click on "Double-Click to install Zulu X.x.x.x and follow the installation.

Note: Java will be installed at /Library/Java/JavaVirtualMachines/ example if you install Java 11 - /Library/Java/JavaVirtualMachines/zulu-11.jdk

Copyright ยฉ Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap