Last active
May 17, 2017 07:42
-
-
Save guildenstern70/8730c4baae9b3b671f3d3712c86cf2a6 to your computer and use it in GitHub Desktop.
Remove JDK on MacOSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkgutil --pkgs|grep -i com.oracle # Know installed JDKs | |
pkgutil --info com.oracle.jdk8u77 # Know where particular JDK is located (ie: jdk8u77) | |
sudo rm -R /Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk # Remove JDK | |
sudo pkgutil --forget com.oracle.jdk8u77 # Remove package | |
pkgutil --pkgs|grep com.oracle # Confirm removal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment