It's the reason the moderators here suggest avoiding all registry cleaners and "optimizers".. They frequently CAUSE more problems than the help.
That said, does System Mechanic have an "undo" option.. If so, undo the last cleaning that was made.
If that doesn't help, then try the steps below to completely remove Java from the system, then reinstall it again..
First, please uninstall any versions of Java on your computer from the Control Panel.. Next, visit the link below, then download and run the JavaRa program and let it find and remove any remnants it can find.
http://singularlabs.com/software/javara/
Once that's done, download and run the free-ware version of the Revo Uninstaller to see if it can find any remnants of Java still remaining.. If found, remove them.
http://www.revouninstaller.com/revo_uninstaller_free_download.html
Next, if you still can't install the newest version of Java, AND...if you're good at registry editing, you'll need to search the registry for any remaining Java keys that can be removed. BE SURE to make a backup of the registry before deleting such. The link below will give you good information about which keys are used by Java and need to be removed..
http://mindprod.com/jgloss/registry.html
After using both of the above tools to clean Java from the computer, reinstall the latest version of Java using the Java 7 Up7 OFFLINE installer from the link below. (If you've got a 64 bit version of Windows, install BOTH the x86 and the x64 versions of Java. You'll need it for both versions of your browsers.):
http://www.oracle.com/technetwork/java/javase/downloads/jre7u7-downloads-1836441.html
_______________
And if you've performed all the steps above, and there's still no joy, you're best bet is to perform a clean install.. I know that's a drastic step for a simple Java issue, but we've found such to be necessary in many such cases where a registry cleaner was used. Unfortunately, if one important items was removed, there may be others.
Hope this helps.
Grif
I have un installed all versions of Java. Then installed the latest version 7.7. Java says it installs correctly without errors but when I go to use internet explorer 8 and return to the JAVA site to run the verification program, JAVA says it was not installed properly. I know this to be the case as a site I visit requires JAVA and it will not work. JAVA does work properly in Mozilla Firefox so I know it is installed in my computer.
I uninstalled Internet Explorer 8 and reinstalled but no change.
Anyone have a solution to this? I have a suspicsion that System Mechanic may have removed an important file or a link file but cannot say that for sure.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic