Windows 7 environment variable not working in path

后端 未结 14 2133
[愿得一人]
[愿得一人] 2020-12-07 23:00

I am trying to set up some path using environment variable. I added an environment variable \"MAVEN_HOME\" with the value \"C:\\maven\". Then in the path I added \"%MAVEN_HO

14条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-07 23:27

    If the PATH value would be too long after your user's PATH variable has been concatenated onto the environment PATH variable, Windows will silently fail to concatenate the user PATH variable.

    This can easily happen after new software is installed and adds something to PATH, thereby breaking existing installed software. Windows fail!

    The best fix is to edit one of the PATH variables in the Control Panel and remove entries you don't need. Then open a new CMD window and see if all entries are shown in "echo %PATH%".

提交回复
热议问题