Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'? [duplicate]
On my Windows 7 machine, it was solved by doing the following:
- In the START menu type "regedit" to open the Registry (be careful doing this)
- Go to "HKEY_LOCAL_MACHINE" on the left-hand side registry explorer/tree menu
- Click "SOFTWARE" within the "HKEY_LOCAL_MACHINE" registries
- Click "JavaSoft" within the "SOFTWARE" registries
- Click "Java Runtime Environment" within the "JavaSoft" list of registries
- Highlight "CurrentVersion" (should see it in the main registry key explorer window on the right)
- Change version to "1.7"
That is all... should work. Short of that, if you've already tried some other guides and/or messed up your registries, the most certain way to deal with the problem is to delete all previous versions of Java (using "Programs and Features" uninstall process) and then re-install just the version you want to work with. I'd suggest the distribution site at:http://java.com (as it usually has the most stable version)
Or look for a specific version you need from Oracle's site:http://www.oracle.com/technetwork/java/javase/downloads/
I had various JDK from 1.5 to 1.7 installed on my PC. I had a need to learn JDK1.8 so installed and my earlier versions of Eclipse (depended on earlier versions of JDK) and I got errors launching my Eclipse IDE, on the command line I tried to check the Java Version and got the error below,
C:\>java -versionRegistry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'has value '1.8', but '1.6' is required.Error: could not find java.dllError: could not find Java SE Runtime Environment.
Solution:-I removed
C:\ProgramData\Oracle\Java\javapath;from the PATH variable and moved %JAVA%\bin to the start of the PATH variable, that solved the problem for me.
Go to 'c:/Windows/System32' and delete the java.exe, javaw.exe and javaws.exe there.See at Registry Key '...' has value '1.7', but '1.6' is required. Java 1.7 is Installed and the Registry is Pointing to it