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
On Windows, Java prevents starting the Installer twice by creating (two) lock files. If those files exist, Java Installer show the Message: "Another Java installation is in progress (...)".
If Java Installer crashes, or Windows crashes during Java Installation, the installer cannot delete the lock files when finalizing.
Solution:
Deleting the lock files, unlocks the Installer and Java can be installed again.
The lock files are located at:
C:\ProgramData\Oracle\Java\JAVA_INSTALL_FLAG
%USERPROFILE%\AppData\LocalLow\Sun\Java\JAVA_INSTALL_FLAG
%USERPROFILE%\AppData\LocalLow\Oracle\Java\JAVA_INSTALL_FLAG
Although this was written for JDK9, JDK10 will suffer from the same issue BUT the lock location is different. The new lock file is located in %USERPROFILE%\AppData\LocalLow\Sun\Java\JAVA_INSTALL_FLAG
.
Simply deleting this file should allow you to proceed with the install.
on windows 10, delete below directories,
C:\Program Files\Java C:\ProgramData\Oracle\Java C:\Users\%UserName%\AppData\LocalLow\Sun\Java C:\Users\%UserName%\AppData\LocalLow\Oracle\Java
and try again.
Kill any remaining Windows® installer msiexec.exe
processes using the Task Manager of Windows. The Windows installer process apparently locks any java files/processes which blocks the Java JDK to be updated.
My problem installing Java 9 began after I upgraded JetBeans IntelliJ which uses Java JRE/JDK. I first tried the suggested solution that BlackSheeep posted, but without any luck.
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.
This helped me:
DELETE:
%USERPROFILE%\AppData\LocalLow\Oracle\Java\JAVA_INSTALL_FLAG
and
%USERPROFILE%\AppData\LocalLow\Sun\Java\JAVA_INSTALL_FLAG