First remove any previous versions of Java from your computer. If you notice more than one, remove all versions.
Once Java has been removed, you are now ready to install Java’s latest version.
Select Run at the prompt at the bottom of the screen (Skip to step D after)
Select Save File
A downloads window will appear showing your recently downloaded files. Double click the Java Download (Skip to step D after)
Click on the Java Chrome Install File in the bottom left corner of the browser
Select Run when prompted
Uncheck the option to install any additional add-ons and click Next
64 Bit Java Installation (If applicable)
If you're running a 64 bit computer you will also need Java’s 64 version in addition to the 32 bit version. Although your browser maybe 64 bit, you can ensure you have the 64 bit version of Java by clicking on the link See All Java Downloads.
Select the Windows Online download for the 64 bit Java to being the installation.
Click on the Apple icon at the top left corner of your screen and select Software Update.
Allow the system to check for updates.
After checking for updates you will be presented with a window displaying all updates available for your Mac system. If Java is available then ensure it is checked and select Install.