Here's how to do it for Mac OS X - worked for me -
1. Open Finder
2. Hit Command, Shift, G (all at the same time)
3. Copy and paste "Library/Java/JavaVirtualMachines/" and search.
4. It should have a folder "Java 1.8.0" or something like that. Delete it.
5. Hit Command, Shift, G (once again all at the same time)
6. Copy and paste "/Library/Internet Plug-ins/" and search.
7. Delete the file JavaAppletPlugin.plugin
8. Go to "http://www.oracle.co...ds-1880260.html" and download/install Java 1.7.51