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

后端 未结 8 457
生来不讨喜
生来不讨喜 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
    
    0 讨论(0)
  • 2021-02-02 14:40

    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.

    0 讨论(0)
  • 2021-02-02 14:41

    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.

    0 讨论(0)
  • 2021-02-02 14:47

    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.

    0 讨论(0)
  • 2021-02-02 14:52

    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.

    0 讨论(0)
  • 2021-02-02 15:01

    This helped me:

    DELETE:

    %USERPROFILE%\AppData\LocalLow\Oracle\Java\JAVA_INSTALL_FLAG
    and
    %USERPROFILE%\AppData\LocalLow\Sun\Java\JAVA_INSTALL_FLAG
    
    0 讨论(0)
提交回复
热议问题