Skip to content

Instantly share code, notes, and snippets.

@parasyte parasyte/README.md
Last active Apr 27, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.