Closed utterances-bot closed 3 years ago
instead of brew cask install adoptopenjdk8 use brew install adoptopenjdk/openjdk/adoptopenjdk8 as there are multiple
Error: Cask adoptopenjdk8 exists in multiple taps: homebrew/cask-versions/adoptopenjdk8 adoptopenjdk/openjdk/adoptopenjdk8
Nice approach.
What if I have multipel JDK matching one Java version, like on my machine:
› /usr/libexec/java_home -V -v11
Matching Java Virtual Machines (3):
11.0.11 (x86_64) "GraalVM Community" - "GraalVM CE 21.1.0" /Library/Java/JavaVirtualMachines/graalvm-ce-java11-21.1.0/Contents/Home
11.0.11 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 11" /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Home
11.0.2 (x86_64) "Oracle Corporation" - "Java SE 11.0.2" /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home
How to manage multiple Java JDK versions on macOS X
How to manage multiple Java JDK versions on macOS X using homebrew.
https://notiz.dev/blog/how-to-manage-multiple-java-versions-on-mac