![]() You can fix this by a self-uninstall tool called "rm -rf". ![]() ![]() Library/Internet Plug-Ins/ugin/Contents/Home You can check if oracle is hijacking your system with:Ĭode Block bash $/usr/libexec/java_home -Vġ5.0.1 (x86_64) "UNDEFINED" - "OpenJDK 15.0.1" /usr/local/Cellar/openjdk/15.0.1/libexec/openjdk.jdk/Contents/Homeġ.8.191.12 (x86_64) "Oracle Corporation" - "Java" /Library/Internet Plug-Ins/ugin/Contents/Homeġ.8.0_275 (x86_64) "Amazon" - "Amazon Corretto 8" /Users/hellothere/Library/Java/JavaVirtualMachines/corretto-1.8.0_275/Contents/Homeġ.8.0_272 (x86_64) "Amazon" - "Amazon Corretto 8" /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home If you have a oracle JDK or JRE installed shit will hit the fan. If I say "javahome -V", it will show all the VMs.Ĭode Block Matching Java Virtual Machines (5):ġ5 (x86_64) "AdoptOpenJDK" - "AdoptOpenJDK 15" /Library/Java/JavaVirtualMachines/adoptopenjdk-15.jdk/Contents/Homeġ3.0.1 (x86_64) "Oracle Corporation" - "Java SE 13.0.1" /Library/Java/JavaVirtualMachines/jdk-13.0.1.jdk/Contents/Homeġ1.0.5 (x86_64) "Oracle Corporation" - "Java SE 11.0.5" /Library/Java/JavaVirtualMachines/jdk-11.0.5.jdk/Contents/Homeġ.8.271.09 (x86_64) "Oracle Corporation" - "Java" /Library/Internet Plug-Ins/ugin/Contents/Homeġ.8.0_271 (x86_64) "Oracle Corporation" - "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Homeīut again, no matter what I try to do to get a real JDK, it always gives the same /Library/Internat Plug-ins directory, which isn't a full JDK, so all development apps break. For some reason java home will always return "/Library/Internet Plug-Ins/ugin/Contents/Home" regardless of what I give it with the -v flag. I am running macOS Big Sur, Version 11.0.1 This was not the case in the previous macOS version. So to remedy that, just unset JAVA_HOME and then set it to whatever you want.Įxport JAVA_HOME=$(/usr/libexec/java_home -v "11.0.8") 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. Library/Java/JavaVirtualMachines/graalvm-ce-java11-20.2.0/Contents/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. |