Openjdk 1.8 mac4/4/2023 I did notice that if you have JAVA_HOME already set, the "/usr/libexec/java_home -v 'VERSION'" does not return the path to the specified version but returns whatever is in JAVA_HOME. When selecting a specific version, you might want to enclose it into quotes, e.g.:Ĭode Block bash /usr/libexec/java_home -v "11.0.8" Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Home Here's output on my system (as an example):Ĭode Block text Matching Java Virtual Machines (4):ġ5.0.1 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 15" /Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Homeġ1.0.9 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 11" /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/Contents/Homeġ1.0.8 (x86_64) "GraalVM Community" - "GraalVM CE 20.2.0" /Library/Java/JavaVirtualMachines/graalvm-ce-java11-20.2.0/Contents/Homeġ.8.0_275 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 8" /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home Try listing all VMs installed using the java_home utility (capital '-V' option):Ĭode Block bash /usr/libexec/java_home -V
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |