Make sure you have updated Java to version 1.6 and set it as default in Java Preferences.
After that, execute below commands in terminal:
$ cd /System/Library/Frameworks/JavaVM.framework/Versions/
$ sudo rm CurrentJDK
$ sudo ln -s 1.6.0 CurrentJDK
$ sudo rm CurrentJDK
$ sudo ln -s 1.6.0 CurrentJDK