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.