1

My computer turn off when i install jdk 9, and now any java program cant be install.

Error message :

another java installation is in progress you must complete that installation before you can run this installer

I tried alredy :

By the way i Don't try the option to disable WindowsIntaller service, because this option in the service properties lock on "manual" and i cant change it...

Thanks for any help

mayan anger
  • 2,322
  • 2
  • 11
  • 19
  • Restart your pc and try again . – GoutamS Jan 04 '18 at 18:34
  • thank you for your response , any way i already tried this :) – mayan anger Jan 04 '18 at 19:02
  • Did your computer actually shut down during install? **Have you checked your system for malware?** Perhaps try to run Windows Defender in Offline Mode if you are on Windows 10. It is in the "Advanced Scanning" section and will scan during system boot. – Stein Åsmul Jan 05 '18 at 01:19

1 Answers1

1

UPDATE: As researched by the original poster, this issue turned out to be a know problem that is not related to Windows Installer. The solution is described here: https://bugs.openjdk.java.net/browse/JDK-8184984 (essentially involving cleanup of some lock files).


Original answer here:

Before trying anything else, please try this option and let us know if it solved the problem (I haven't had any concrete problems to test it with for a while - these tools tend to get deprecated):

Several such cleanup tools have come and gone - all deprecated and unsupported as of now (MsiZap.exe for example).

I am not sure if your installer is Windows Installer based - since you have added that tag to your question I just assume so.


Please don't ever listen to advice telling you to disable the Windows Installer service. Those "hacks" can wreck your system. In fact if you have done any changes and the service won't start and you are unable to change things back, then your best options might be the "Last Known Good Configuration" feature (activated by pressing F8 during system boot on Windows systems before Windows 10), or "System Restore" (the latter may also fix your stuck Java package, but I don't like this feature - I have seen other, unrecoverable installation / uninstallation problems occur when it is used - try as a last resort - maybe if the above tool doesn't help).


Some links - just for reference and easy retrieval:

Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164
  • Thank u very much, troubleshooter not work, however you defiantly right about your explanation IT IS NOT PROBLEM WITH WINDOWS INSTALLER. so pathetic i tried some of the wrong solution you warning about. The solution was delete BOTH java lock files. as was here https://bugs.openjdk.java.net/browse/JDK-8184984. i will like if you will add this link to your answer and i will mark your answer as a solve one. – mayan anger Jan 05 '18 at 18:46
  • 1
    Thanks for that report Mayan. I have updated the top of the answer with your findings. Good luck with your project, those installers look a little challenging. Are they mixing MSI installers and non-MSI installers? That could cause other problems. – Stein Åsmul Jan 05 '18 at 18:56
  • its was regular jdk install. .exe – mayan anger Jan 05 '18 at 21:42
  • sorry is i make confusion – mayan anger Jan 05 '18 at 21:49