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, 7982🔥, 0💬
Popular Posts:
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
Apache Commons Codec library provides implementations of common encoders and decoders such as Base64...
How to download and install mysql-connector-j-8.0.31 .zip?Connector/J Java library is a JDBC Driver ...
How to download and install JDK (Java Development Kit) 6? If you want to write Java applications, yo...
What Is poi-scratchpad-5.2.3.jar ?poi-scratchpad-5.2.3.jar is one of the JAR files for Apache POI 5....