Reprint Address: http://blog.sina.com.cn/s/blog_50f21fed01012sf2.html
After configuring Java_home, Classpath, and path three variables as per the previous steps, the following error occurred during the test execution java-version: (Execute javac command and Hellojava.java are not wrong)
Registry key ' Software/javasoft/java Runtime environment/currentversion '
Has the value ' 1.7 ', but ' 1.7.0-ea-b21 ' isrequired.
Error:could not find Java.dll
Error:could not find Java 2 runtimeenvironment
The following online search solutions are available:
(1) Place the Java path in path in the first place;
(2) Find the Windows and System32 directory, found in the System32 directory there is a java.exe, it is estimated that Ms put in, Renameit.
But I tried the scenario (1) is still the above error, and the scheme (2) is feasible.
PS: You can view the differences in the files in several Java file box JRE under the System32 directory. such as Java.exe Javaw.exe Javaws.exe and so on
"Go" error and resolution when running the Java-version command