Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@parasyte
Last active April 27, 2017 16:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parasyte/87aaee082c6866ace5803b644d1401da to your computer and use it in GitHub Desktop.
Save parasyte/87aaee082c6866ace5803b644d1401da to your computer and use it in GitHub Desktop.
How to delete Apple Java on OS X 10.11 El Capitan

Warning: Use at your own risk

I assume no responsibility for the use of these instructions, or any negative impact they may have. You probably shouldn't do this. (Unless you really, truly hate vile cruftware like Java.)

Let the games begin

  1. Reboot into Recovery Mode.
  2. Power-on and hold ⌘ + R until Apple Logo appears.
  3. If your hard drive is encrypted:
  4. Start "Restore From Time Machine Backup"
  5. Click "Continue" until you are asked to unlock the hard drive.
  6. Enter your password, then quit Time Machine Restore.
  7. From the menu bar, choose Utilities -> Terminal Utilities -> Terminal
  8. Delete that jazz:
  • cd /Volumes/Macintosh\ HD
  • rm -rf usr/bin/java*
  • rm -rf usr/lib/java
  • rm -rf usr/libexec/java_home
  • rm -rf usr/share/java
  • rm -rf usr/share/man/man1/java*
  • rm -rf System/Library/Frameworks/JavaVM.Framework
  • rm -rf System/Library/Java
  1. Good riddance to bad rubbish.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment