Invalid Windows environment variable setting workaround--dos window setting environment variables

Source: Internet
Author: User

The computer configured by the company is Win7, the account used is not an administrator account, I set the environment variable in the computer---Properties is invalid.

The environment variable was later successfully set in the DOS window.

1, set [environment variable name]=[all environment variable value]:set path=%maven_home%\bin; C:\Program Files\java\jdk1.7.0_71\bin;

This method is only valid after the current DOS window is set, and reopening after exiting is not valid, you can use the command: Echo%path% view.

2. SETX [environment variable name] "[Increase environment variable value]": Setx Path "C:\Program files\java\jdk1.7.0_71\bin;"

After setting the environment variable in this way, it is still valid even if exiting the current DOS window.

Invalid Windows environment variable setting workaround--dos window setting environment variables

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.