Install JDK in MacOS: Difference between revisions
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/usr/libexec/java_home -V | /usr/libexec/java_home -V | ||
==GraalVM== | |||
<source lang="bash"> | |||
sudo wget -c https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.0.0.2/\ | |||
graalvm-ce-java17-darwin-amd64-22.0.0.2.tar.gz -P /Library/Java/JavaVirtualMachines/ | |||
sudo tar -xvzf /Library/Java/JavaVirtualMachines/graalvm-ce-java17-darwin-amd64-22.0.0.2.tar.gz\ | |||
-C /Library/Java/JavaVirtualMachines/ | |||
sudo rm -rf /Library/Java/JavaVirtualMachines/graalvm-ce-java17-darwin-amd64-22.0.0.2.tar.gz | |||
export GRAALVM_HOME=`/usr/libexec/java_home -v22.0.0.2` | |||
export JAVA_HOME=`/usr/libexec/java_home -v22.0.0.2` | |||
</source> | |||
==Uninstall== | ==Uninstall== | ||
Line 6: | Line 19: | ||
/usr/libexec/java_home -v1.8.0_321 | /usr/libexec/java_home -v1.8.0_321 | ||
/usr/libexec/java_home -v1.8.0_241 | /usr/libexec/java_home -v1.8.0_241 | ||
/usr/libexec/java_home -v22.0.0.2 | |||
/usr/libexec/java_home -v1.7.0_80 | /usr/libexec/java_home -v1.7.0_80 | ||
/usr/libexec/java_home -v1.8.0 | /usr/libexec/java_home -v1.8.0 | ||
|valign="top"| | |valign="top"| | ||
sudo rm -rf /Library/Java/JavaVirtualMachines/graalvm-ce-java17-22.0.0.2/ | |||
sudo rm -rf /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/ | sudo rm -rf /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/ | ||
sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/ | sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/ | ||
Line 19: | Line 34: | ||
* [https://stackoverflow.com/questions/51780530/ Uninstall the Java JDK from macOS] | * [https://stackoverflow.com/questions/51780530/ Uninstall the Java JDK from macOS] | ||
* [https://www.graalvm.org/java/quickstart/ GraalVM Quick Start Guide] | * [https://www.graalvm.org/java/quickstart/ GraalVM Quick Start Guide] | ||
* [https://github.com/graalvm/mandrel/releases Mandrel: Download] |
Latest revision as of 03:53, 13 March 2022
/usr/libexec/java_home -V
GraalVM
sudo wget -c https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.0.0.2/\
graalvm-ce-java17-darwin-amd64-22.0.0.2.tar.gz -P /Library/Java/JavaVirtualMachines/
sudo tar -xvzf /Library/Java/JavaVirtualMachines/graalvm-ce-java17-darwin-amd64-22.0.0.2.tar.gz\
-C /Library/Java/JavaVirtualMachines/
sudo rm -rf /Library/Java/JavaVirtualMachines/graalvm-ce-java17-darwin-amd64-22.0.0.2.tar.gz
export GRAALVM_HOME=`/usr/libexec/java_home -v22.0.0.2`
export JAVA_HOME=`/usr/libexec/java_home -v22.0.0.2`
Uninstall
/usr/libexec/java_home -v1.8.0_321 /usr/libexec/java_home -v1.8.0_241 /usr/libexec/java_home -v22.0.0.2 /usr/libexec/java_home -v1.7.0_80 /usr/libexec/java_home -v1.8.0 |
sudo rm -rf /Library/Java/JavaVirtualMachines/graalvm-ce-java17-22.0.0.2/ sudo rm -rf /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/ sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/ sudo rm -rf /Library/Java/JavaVirtualMachines/jdk1.7.0_80.jdk/ sudo rm -rf /Library/Java/JavaVirtualMachines/jdk-11.0.6.jdk/ |