Reputation: 85
I got windows 10 some days ago but when I tried to run an application (.exe), it gave the following error message
the registry refers to a nonexistent Java Runtime Environment instalation or the runtime is corrupted. The system cannot find the path specified.
Does anyone knows how to fix this, I assume that I have to change something in the environment variables, but I cannot find good information about it for windows 10.
Upvotes: 6
Views: 12192
Reputation: 911
I had the same issue recently when trying to run freemind. the way i solved it in win10 was this:
Using OO RegEdit I searched for java runtime environment
and found it under
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\JavaSoft\Java Runtime Environment
rather than all the places that other articles mention for win7 ....etc.
I removed the invalid entries for jre7 and the app started working immediately. HTH
Upvotes: 0
Reputation: 48
This happens because you have some entries in your registry which point at invalid paths.
java
tab under the Java Control Panel).C:\Program Files\Java
).HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\1.x
(here x is the jre version).1.x
whether they are actually present under the given directory.You'll find some invalid entries there, just delete those entries (corresponding folder under HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment\
) and reinstall your exe application.
Upvotes: 2