Have you installed the latest OS X (10.9)?
If you need to install Java 6 go to this page http://support.apple.com/kb/DL1572?viewlocale=en_US
Do not forget to change the setting “allow apps downloaded from” to “anywhere” from your “security & privacy” settings.