I have been using JDK 9 on Windows 10 x64 for a while but when I went to install the latest early release (b174), I first uninstalled the previous version (as usual) and then ra
I had this problem also and i came to this page but i couldn't solve it at first because i thought my system didn't have 'ProgramData' in my C: drive because its hidden i guess. This is what worked for me. Go to the windows file explorer and delete the 'JAVA_INSTALL_FLAG' files in all these directories
%ProgramData%\Oracle\Java
%UserProile%\AppData\LocalLow\Sun\Java
%UserProile%\AppData\LocalLow\Oracle\Java
Then Java jdk installs smoothly. i have recreated this problem and tried this solution again and it works.