Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Registry has value '1.8', but '1.7' is required
I have JDK 7 stored C:\java\jdk1.7 folder. When I run the "C:\java\jdk1.7\bin\java -version" command, I am getting the following error:
Error: Registry key 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion' has value '1.8', but '1.7' is required. Error: could not find java.dll Error: Could not find Java SE Runtime Environment.
✍: FYIcenter.com
You are getting this error, mostly because the "C:\java\jdk1.7\jre" folder is missing. This .\jre folder contains java.dll and other important files to run JVM.
When you invoke "C:\java\jdk1.7\bin\java.exe", it will try to find java.dll in "C:\java\jdk1.7\jre". If not there, it will check the registry 'Software\JavaSoft\Java Runtime Environment'\CurrentVersion', which is pointing a JDK 8 JRE folder somewhere else on your hard disk. This is why the error message says: "Registry key ... has value '1.8', but '1.7' is required."
2015-06-05, 7384🔥, 0💬
Popular Posts:
How to download and install JDK (Java Development Kit) 6? If you want to write Java applications, yo...
JDK 11 java.security.jgss.jmod is the JMOD file for JDK 11 Security JGSS (Java Generic Security Serv...
JDK 11 jdk.internal.vm.ci.jmod is the JMOD file for JDK 11 Internal VM CI module. JDK 11 Internal VM...
Snappy-Java is a Java port of the "snappy", a fast C++ compresser/decompresser developed by Google. ...
JDK 11 jdk.httpserver.jmod is the JMOD file for JDK 11 HTTP Server module. JDK 11 HTTP Server module...