User variables are valid only for the current user, system variables are valid for all users
1. The role of environment variables is to use java and javac commands in any directory of dos
2. First configure JAVA_HOME = point to the main directory of jdk installation
3. Edit the Path environment variable %JAVA_HOME%\bin