I have tried with both the versions but am getting the same result.
![download and install java 8 for windows 10 64 bit download and install java 8 for windows 10 64 bit](https://i.stack.imgur.com/ayrgy.png)
The installer is opening right and after clicking on next, it progresses for the 1st part smoothly and the progress bar is filled completely but when it goes on to the 2nd progress bar, it just stops and the progress bar doesn't even start. I am running it as an administrator and i have also uninstalled previous java versions from my system. I have downloaded the 8u111 setup file named "jdk-8u111-windows-圆4.exe" and 8u112 setup file named "jdk-8u112-windows-圆4.exe" from Oracle downloads page and have tried to install the jdk with both versions.
![download and install java 8 for windows 10 64 bit download and install java 8 for windows 10 64 bit](https://i.ytimg.com/vi/BjHSOuuvlaA/maxresdefault.jpg)
I have tried multiple times now to install jdk 8 in my windows 7 64-bit machine but have failed.