Monday, October 28, 2013

Disable Java 7 and 8 in the Browser Manually on Mac

To disable Java 7 and up in the browser on Mac open Terminal and run the following three commands: 1. Change directories to the Oracle Application support directory.

cd /Library/Application\ Support/Oracle/Java
2. Remove the Info.plist (ls -al should show that it points to the Enabled.plist)
sudo rm -r -f Info.plist
3. Create a new Info.plist that points to the Disabled.plist
sudo ln -s /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Disabled.plist Info.plist
This will completely disable the Java plugin from running from within the browser. You can also do this from the Java Control Panel, but there are times when this is preferred. Note that this change will be remembered after upgrades because of how the installer works it will not modify this symlink, it will only create it if it does not exist and point it to the Enabled.plist.