I kept getting errors installing certain software on Mac despite of installing the latest JRE. Figured out that there is a separate JRE just for Mac. Can be found on this link:
This would do the trick for you. Wish Apple mentions this explicitly during their pop-ups to install the OSX specific version.