Macs that come installed with OS X 10.8.3 or above do not have Java installed due to Apple's decision to drop it over security concerns. Apple's version of Java for OS X is now only available as an optional download via the company.
It is simple to install : just download this app, close your browser, and then run the DMG file. Alternatively, you can also download Java for OS X via the Java option in your System Preferences.
Run Java plugins
This is the latest version of Java for OS X, which has been updated to ensure your Mac is secure from the vulnerabilities. It also configures the Java web plugin to disable the automatic execution of Java applets. Users may re-enable this using the Java Preferences application. If the Java web plugin detects that no applets have been run for an extended period of time, it will again disable them.
Fill your Mac with Java
In a nutshell, this program allows you to run Java apps on Macs running OS X 10.8.3 and above.