Unless you have picked up a virus which has corrupted operations, I'd suggest removing your Java versions & replacing with the most recent one. Use the OFFLINE installer which is about a 15 MB download;
Download Java software from Sun Microsystems
BTW
before re-installing Java, a good idea to run this utility to clean up the registry:
Microsoft Windows Install Clean Up. An alternative is
Crap Cleaner