rami_salazar
rami_salazar

Reputation: 165

Installing JVM 8 on Mac with M1 chip

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

Upvotes: 3

Views: 11482

Answers (2)

Luca Foppiano
Luca Foppiano

Reputation: 166

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.

Upvotes: 1

James Risner
James Risner

Reputation: 6074

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.

Upvotes: 5

Related Questions