

OP's solution is a "fingers-crossed and hope that there exists a fallback java.exe in the users %PATH% and that the fallback executable is correct" approach to the error. Update the users %PATH% environment variable, remove C:\Program Files (x86)\Common Files\Oracle\Java\javapathĮrror: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'Įrror: Could not find Java SE Runtime Environment.

the the HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment > CurrentVersion string registry entries value is updated to 1.8.the users %PATH% is updated to include C:\Program Files (x86)\Common Files\Oracle\Java\javapath as the first entry.the HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment > CurrentVersion string registry entry is created (among others) with the value 1.7.the installation does not update the users %PATH%.the java.exe executable available in the users %PATH% is installed in C:\Windows\System32.The correct solution depends on what you're trying to achieve: "are you trying to downgrade from jdk-8 to jdk-7? Are trying to upgrade to jdk-8?. reconfiguration of the users environment or removal of java executables with fingers-crossed and hope that there exists another fallback java.exe in the users %PATH% and that the fallback java.exe is the correct executable).

The error can be solved in various different manners (e.g. The recurring theme to proposed solutions is that the error is a configuration error.

you are attempting to use the java.exe 1.7 executable while the HKEY_LOCAL_MACHINE\Software\JavaSoft\Java Runtime Environment > CurrentVersion registry key has the value 1.8. Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion' has value '1.8', but '1.7' is required.Įrror: Could not find Java SE Runtime Environment.
