Here is the solution, which should work:
1. Enter your
Control Panel\Programs and Features
Uninstall all Java related programs.
2. Download and install this program (it's free)
CCleaner.
After installing, run the program.
Before the first use, select Options > Advanced and UNCHECK "Only delete files in Windows Temp folder older than 48 hours"
Click on
Analyzer...then click on
Run Cleaner.
On the left side of the window, click on Registry...click on
Scan for issues...click on
Fix selected issues.
3. Go to
Java.
Press the Free Java Download button.
This process should fix your Java issue.
This process will not work, if you skip any steps.
After completing this process, please provide feedback. Thanks.