After "Java" moves the JDK path, modifying the environment variable does not take effect error:could not open ' C:\Program files\java\jre1.8.0_131\lib\amd64\jvm.cfg '

Source: Internet
Author: User

Scene:

The JDK was originally installed in the C drive, now moved to the D drive, and the environment variable modified the%java_home% new path, but the cmd input JAVA still error.

Error:could not open ' C:\Program files\java\jre1.8.0_131\lib\amd64\jvm.cfg '

Workaround:

In the environment variable path, move the following paragraph to the front of the path. Remember to close and then open cmd before entering Java check.

%java_home%\bin;%java_home%\jre\bin;

If you can't, maybe you can try this?

  • Https://zhidao.baidu.com/question/282409986.html

After "Java" moves the JDK path, modifying the environment variable does not take effect error:could not open ' C:\Program files\java\jre1.8.0_131\lib\amd64\jvm.cfg '

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.