JAVA HOME running environment variable does not take effect

Enter set to view the environment variables, and find that the JAVA_HOME configuration is normal, but there is a problem with the call to %JAVA_HOME%, and the variable is not replaced by the actual path.

Configure temporary environment variables with the set command.
Temporary environment variables only work on the current console window. Once the window is closed, the configured temporary environment variable information will disappear.

Solution:
Run -->cmd
Run the following command in the console to set the java environment variable to solve:
copy the value in the original Path
set path=paste After the
setting is complete, run java -version to verify whether it is successful.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326552451&siteId=291194637