Skip to content

Instantly share code, notes, and snippets.

@guildenstern70
Last active May 17, 2017 07:42
Show Gist options
  • Select an option

  • Save guildenstern70/8730c4baae9b3b671f3d3712c86cf2a6 to your computer and use it in GitHub Desktop.

Select an option

Save guildenstern70/8730c4baae9b3b671f3d3712c86cf2a6 to your computer and use it in GitHub Desktop.
Remove JDK on MacOSX
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