this link says os x 10.5 but also applies to 10.8.
http://support.apple.com/kb/TS2828
type in terminal:
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister "/System/Library/CoreServices/Java Web Start.app"