Check your version of Mac OS X. » How do I find my Mac OS X version?
Use Software Update available on the Apple menu to check that you have the most up-to-date version of Java 6 for your Mac. Java 7 and later versions are not supported by these older versions of Mac OS X. If you have problems with Java 6, contact Apple Technical Support. Java.com does not provide a download for these systems.
Java 7 and later versions can run on your Mac. Oracle Java (Version 7 and later versions) requires an Intel-based Mac running Mac OS X 10.7.3 (Lion) or later and administrator privileges for installation.
» Information about installing and using Oracle Java on Mac
» Download Java Mac OS X Version 10.7.3 (Lion) or newer