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