Skip to content

Instantly share code, notes, and snippets.

@breiter
Created March 19, 2015 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breiter/550711059ba0c53853e8 to your computer and use it in GitHub Desktop.
Save breiter/550711059ba0c53853e8 to your computer and use it in GitHub Desktop.
Remove Java browser plugin after installing JDK on OS X
#!/bin/sh
if [ "$(id -u)" -ne 0 ]; then
SELF=`echo $0 | sed -ne 's|^.*/||p'`
echo "$SELF must be run as root." 1>&2
echo "try: sudo $SELF" 1>&2
exit 1
fi
rm -fr /Library/PreferencePanes/JavaControlPanel.prefPane
rm -fr /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment