Java 9 was announced on September 21, 2017. This release contains some destructive changes, so It may not work after updating.
Therefore, I need to uninstall Java9. Even if I looked it up, I was in trouble because I couldn't find a proper article. I will summarize the method that I verified and executed by myself.
sudo rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
sudo rm -fr ~/Library/Application\ Support/Java
Erase Java with
sudo rm -fr /Library/Java/JavaVirtualMachines/jdk-9*
Erase the JDK with.
If you are asked for a password on the way, enter your login password.
After executing the above command
http://www.oracle.com/technetwork/java/javase/downloads/index.html
You can install the desired JDK from.
For Java8, use the Java SE 8u152
JDK.
The JDK is under / Library / Java / JavaVirtualMachines /
It is stored in a package called jdk-9. *. *. Jdk
.
Just in case,
ls /Library/Java/JavaVirtualMachines/
It is better to check the contents.
[1] Oracle: How to uninstall Java on Mac (Target: Java7.0, 8.0) [2] Oracle : 10 JDK 8 Installation for OS X [3] How to use the terminal
Recommended Posts