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 ran the new installer.
It fails with a message box saying "Another Java installation is in progress. You must complete that installation before you can run this installer".
It seems there are some artifacts around causing the problem but only for JDK 9 as I can uninstall & reinstall JDK 8 without any issues. Also, the same problem occurs if I try to run the installers for any prior JDK 9 releases as well (even though they worked before).
Searches have suggested various options like using a Microsoft MSI clean-up tool and registry hacks but nothing is helping.
Can anyone suggest a way to get JDK 9 installed (as now I cannot use any release of JDK 9 at all)?
解决方案
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 finalising.
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