Can't install JDK 9 because “Another Java installation is in progress”

后端 未结 8 478
生来不讨喜
生来不讨喜 2021-02-02 14:05

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

8条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-02 14:40

    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
    

提交回复
热议问题