• Register
0 votes

Problem :

I am getting the bellow error:

Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion' has value '1.8', but '1.7' is required. 

6 5 3
6,930 points

2 Answers

0 votes

Solution :

To resolve this issue I removed all java.exe, javaw.exe and javaws.exe from my Windows\SysWOW64 folder. 

Further Readings:

9 7 4
38,600 points
0 votes


On my Windows 7 machine, it was resolved by doing the following:

  1. In the START menu type "regedit" to open the Registry 

  2. Go to "HKEY_LOCAL_MACHINE" on the left-hand side registry explorer/tree menu

  3. Click on "SOFTWARE" within the "HKEY_LOCAL_MACHINE" registries

  4. Click on  "JavaSoft" within the "SOFTWARE" registries

  5. Click  on "Java Runtime Environment" within the "JavaSoft" list of registries

  6. Highlight "CurrentVersion" (should see it in the main registry key explorer window on the right)

  7. Alter version to "1.7"

That is all must work. Short of that, in case you've meanwhile attempted some other guides and/or messed up your registries, the most definite way to deal with the issue is to delete all previous versions of Java (employing "Programs and Features" uninstall process) and then re-install only the version you want to perform with. I'd indicate the distribution site at: http://java.com (as it generally has the most stable version)

I had various JDK from 1.5 to 1.7 installed on my PC. I had a require to learn JDK1.8 so installed and my prior versions of Eclipse (depended on earlier versions of JDK) and I got errors launching my Eclipse IDE, on the command line I attemted to check the Java Version and got the error below,

C:\>java -version
Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
has value '1.8', but '1.6' is required.
Error: could not find java.dll
Error: could not find Java SE Runtime Environment.



from the PATH variable and moved %JAVA%\bin to the begin of the PATH variable, that resolved the issue for me.

set PATH=c:\Program Files\Java\jdk1.6.0_45\bin;%PATH%

this will perform in case you are working on command prompt

Furthermore, you may follow these steps :

  • Fixed JAVA_HOME to jdk[without bin folder]

  • Fixed PATH as %JAVA_HOME%/bin;

  • Place java.exe , javaw.exe & javaws.exe to C:\ProgramData\Oracle\Java\javapath [I was having problem here].

  • double click on the java.exe

  • Further check and edit the registry value for JAVA current version if necessary.

After attempting more than hundred of tricks, finally got success.

I removed all java.exejavaw.exe and javaws.exe 

  1. Windows\System32 and

  2. Windows\SysWOW64 folder. [Try step 2 if you have x64 system (Win 7 64 bits)]

In my instance (Windows 7 64-bit), I only did the following:

  • Removed the reference to C:\ProgramData\Oracle\Java\javapath; from the Path environment variable

  • Removed files javajavaw and javaws from the C:\Windows\System32 folder

Laterly, I closed all open command line consoles, reopened them and ran java -version.

10 6 4
31,120 points

Related questions

0 votes
1 answer 73 views
Problem : I am getting bellow error while running my program and unable to figure out what the solution would be a fatal error has been detected by the java runtime environment:
asked Nov 5, 2019 peterlaw 6.9k points
0 votes
1 answer 117 views
Problem : When I run my Java code in Eclipse, I get the bellow error message there is insufficient memory for the java runtime environment to continue
asked Oct 23, 2019 peterlaw 6.9k points
0 votes
2 answers 272 views
Problem : I am getting bellow error while checking java SE version error: could not find java.dll error: could not find java se runtime environment.
asked Oct 19, 2019 peterlaw 6.9k points