"Go" error and resolution when running the Java-version command

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.