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条回答
疯言疯语
2楼-- · 2020-01-30 03:07

Other times you might have installed Java 7 and 8 both or twice, and from Add/remove programs unistall one of them and it should work.

查看更多
beautiful°
3楼-- · 2020-01-30 03:09

One Good solution is to restart the PC, this will make the right entry in the Registry of the PC. Restarting solves my problem

查看更多
闹够了就滚
4楼-- · 2020-01-30 03:11

Your java version is 1.5 (you have jdk 1.5). The jar requires java version 1.7 (you should have jdk 1.7). You should download and install the 1.7 jdk from this website:

http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html

查看更多
男人必须洒脱
5楼-- · 2020-01-30 03:11

I ran into this issue after updating the Java JDK, but had not yet restarted my command prompt. After restarting the command prompt, everything worked fine. Presumably, because the PATH variable need to be reset after the JDK update.

查看更多
Viruses.
6楼-- · 2020-01-30 03:13

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

查看更多
做个烂人
7楼-- · 2020-01-30 03:14

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 -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.

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.

查看更多
登录 后发表回答