Error: Registry key 'Software\JavaSoft\Java Ru

2020-01-30 02:40发布

When I run: C:\Users\ashahria\Downloads>java -jar schemaSpy_5.0.0.jar

I get the error below. What is wrong? How can I fix it?

Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion'

has value '1.5', but '1.7' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.

14条回答
Evening l夕情丶
2楼-- · 2020-01-30 03:29

Just Reinstall JDK 1.7 it will work.

查看更多
Rolldiameter
3楼-- · 2020-01-30 03:33

I tried the steps mentioned by @bcmoney but for me the current version was already set to the latest version. In my it was Java8.

I had various versions of java installed (java6, java7 and java8). I got the same error but instead of 1.5 and 1.7 i got 1.7 and 1.8. I uninstalled java6 on my windows 8.1 machine. After which i tried java -version in command prompt and the error did not appear.

I am not sure whether this is the right answer but it worked for me so i thought it would help the community too.

查看更多
登录 后发表回答