Try
Reinstallation Technique. However if you need the dev version of java, then this technique might cause an issue. But at least download the offline version & remove all other versions of Java first.
* Also, right-click the Java installer & choose
Run as Administrator. It is possible to do this manually after installation if you check around the installation sections of the forums you will find how to do. If not sure, ask.