This tip might be useful to some people. One service I use requires Java and since I want to avoid installing the Oracle version I find myself in a bind. Fortunately, OS X includes the Apple-maintained 1.6.x version however by default the OS rightly disables it for web browsers. If you need to quickly reenable and disable it just for specific purposes like mine, Apple provides the instructions here but I’ve noted the terminal commands below for quick reference.
First, enable Java 1.6.x for use by web browsers.
sudo mkdir -p /Library/Internet\ Plug-Ins/disabled
sudo mv /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/disabled
sudo ln -sf /System/Library/Java/Support/Deploy.bundle/Contents/Resources/JavaPlugin2_NPAPI.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Commands/javaws /usr/bin/javaws
Then use Java for that “special” application or service. When finished here is the command to immediately disabling it again.
sudo ln -sf /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javaws /usr/bin/javaws
Today’s post pic is from Forbes.com. See ya!