How to uninstall if you have updated to Java 9 on your Mac

Preface

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.

Execution procedure

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.

Supplement

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.

reference

[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

How to uninstall if you have updated to Java 9 on your Mac
How to uninstall Java 8 (Mac)
How to check Java installed on Mac
How to switch Java versions on Mac
What to do if you have installed Java for OS X on macOS
As of April 2018 How to get Java 8 on Mac
How to switch Java in the OpenJDK era on Mac
[Java] How to update Java on Windows
How to switch Java version with direnv in terminal on Mac
How to get JDK 11 on your mac in a comfortable way
If you can't install java on Catalina
How to install Eclipse (Photon) on Mac
[Java] Memo on how to write the source
Install Java on Mac
How to use java non-standard library on IntelliJ IDEA
What to do if you get a NoClassDefFoundError when trying to run eclipse on Java9
Ssh to Ubuntu on VirtualBox on your Mac and do it until you install Docker
How to uninstall Rails
[Java] How to execute tasks on a regular basis
How to run Java EE Tutial on github on Eclipse
What to do if you get a port error when docker-compose up on Mac
Notes on how to use regular expressions in Java
How to read your own YAML file (*****. Yml) in Java
How to decompile apk file to java source code with MAC
How to deploy a simple Java Servlet app on Heroku
[# 3 Java] Read this if you want to study Java! ~ Carefully selected ~
How to deploy a kotlin (java) app on AWS fargate
How to install java9 on elementaryOS Freya or Ubuntu 14.04 LTS
[Java] How to use Map
How to lower java version
[Java] How to use Map
Java --How to make JTable
How to use java Optional
How to deploy on heroku
How to minimize Java images
How to write java comments
How to use java class
[Java] How to use Optional ②
[Java] How to use removeAll ()
[Java] How to display Wingdings
[Java] How to use string.format
How to use Java Map
How to set Java constants
How to use Java variables
How to convert Java radix
[Java] How to implement multithreading
[Java] How to use Optional ①
How to install JDK8-10 (Mac)
How to initialize Java array
What to do if you go offline due to SSL certificate error when running Jenkins on Mac
How to execute Postgresql copy command with column information on Java
Must-see for beginners! How to manage your Xcode project on Github
If you can't hear sound from your Bluetooth headphones on Ubuntu 20.04
I just want to write Java using Eclipse on my Mac
How to automatically operate a screen created in Java on Windows
If you want to change the Java development environment from Eclipse
How to call with One Touch (without confirmation) on Android (Java)
How to study Java Silver SE 8
How to use Java HttpClient (Get)
How to deploy jQuery on Rails
How to deploy Laravel on CentOS 7