Annoying message spams console at runtime



I've been having a message that spams my console about 50 times on runtime that reads:

Directory 'C:\Program Files\OpenJDK\jdk-8.0.362.09-hotspot' (Windows Registry) used for java installations does not exist

I'm confused as the directory does exist on my computer (the JDK runs fine too).

I assume that it has something to do with Windows Registry (obviously). However I'm not entirely sure where it would be located in Windows Registry if this was the case.

Would somebody happen to know? I can't find anything online or on oracles site about this.

Thanks! 🙂


It seems that the JDK installation path is incorrectly registered in the Windows Registry indeed. To fix this, remove the incorrect registry entry for the OpenJDK installation and reinstall the JDK. Alternatively, you can update the registry entry to point to the correct installation directory.

Check the contents of Computer\HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit and HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment using regedit. Each of those has a CurrentVersion value as well, which I assume corresponds to one of the subkeys.


Thanks so much! This fixed it