Just a clarification because those instructions are for Windows; redownload the Java "Offline" installer from mac. Reinstall it. Do a safe boot & repair permissions with Disk Utility; (1)
Mac OS X: Starting up in Safe Mode; & then (2)
Disk Utility's Repair Disk Permissions. Then reboot normally.
In fact, check these options:
Problems in OSX (click on link)