Installing JVM 8 on Mac with M1 chip

8.8k Views Asked by At

I'm trying to install GrObId and it requires JVM8. Will installing JDK work for this on an M1 Mac?

2

There are 2 best solutions below

0
James Risner On

Install Azul's M1 native JDK 8.

You may obtain an installer for Java 8 (LTS) . The current version is Azul Zulu: 8.64.0.19 (8u345b01) in .dmg format.

Open the disk image and install.

Next you will need to set your JAVA_HOME environment variable.

Open the Terminal.app and run this command:

% open .profile ; open .cshrc ; open .zshrc; open .login; open .bash_profile
The file /Users/risner/.zshrc does not exist.
The file /Users/risner/.login does not exist.

Ignore any "does not exist" errors. You should have a couple of files open.

If you have any files called .cshrc or .login open, add this end of the file:

setenv JAVA_HOME /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre

If you have any .zshrc, .profile or .bash_profile open then add this line instead:

export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre

Next, quit terminal and reopen. You should now be able to install GrObId.

0
Luca Foppiano On

Yes, you can install the openjdk 8 and the latest version 0.7.3 also supports JDK > 11. With the latest version you can install temurin 17 directly with homebrew.