1

I have a new m1 mac.

I installed a few versions of the jdk (just following this tweet as an example)

So I did,

brew tap mdogan/zulu

brew install --cask zulu-jdk17 zulu-jdk16 zulu-jdk11 zulu-jdk8

Now I set my JAVA_HOME to point to jdk11 (most of my projects require jdk11), but when I run java --version it reports the info for 17.

And then if I run /usr/libexec/java_home -v"11" in my terminal, it'll say /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home, but when I run java --version again it'll report 17.

How do I get java --version to report 11 so it's inline with my JAVA_HOME.

c_idle
  • 1,448
  • 4
  • 22
  • 40

0 Answers0