Windows outputs the value of the environment variable

Today, when I configured the java environment, I suddenly found that the variable pointing of JAVA_HOME would not take effect no matter how I changed it.

solution:

1. echo %JAVA_HOME% to determine whether it points to the correct variable

2. echo %PATH% to find the path configured by JAVA_HOME. If not, move JAVA_HOME to the front of the PATH variable.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326233708&siteId=291194637