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, 7421🔥, 0💬
Popular Posts:
SLF4J API is a simple API that allows to plug in any desired logging library at deployment time. Her...
commons-lang-1.0.1.jar is the JAR file for Apache Commons Lang 1.0.1, which provides a host of helpe...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...
Java Architecture for XML Binding (JAXB) is a Java API that allows Java developers to map Java class...
JDK 11 jdk.internal.vm.ci.jmod is the JMOD file for JDK 11 Internal VM CI module. JDK 11 Internal VM...