Java not working Mac Google Chrome

After the most recent java updates to JRE 1.6.0_37 (2012-006) from Apple I found that Google Chrome (and to lesser extent other browsers) were no longer working correctly with Java applications. Typically the message was to install the Missing Plugin which takes you off to the Oracle Java site, that then complains about the fact that Java 7 is 64 bit and Chrome is a 32 bit web browser. This isn’t a viable solution anyway as Java 7 has its own set of problems on Mac OSX Lion 10.7.

It took a lot of Google searching and tweaking but I finally came across the following solution from Apple – see radar #11530556.

It involves re-linking the JavaAppletPlugin.plugin in the system following these instructions:

sudo mkdir -p /Library/Internet Plug-Ins/disabled

sudo mv  /Library/Internet Plug-Ins/JavaAppletPlugin.plugin 
/Library/Internet Plug-Ins/disabled

sudo ln -s /System/Library/Java/Support/Deploy.bundle/Contents/Resources/
JavaPlugin2_NPAPI.plugin /Library/Internet Plug-Ins/JavaAppletPlugin.plugin