JAVA: how to modify environment variables without restarting the computer
1. the three executable files in "Export" are copied to the C: \ Windows \ System32 directory. Because the priority of the directory in the WINDOWS environment variables is higher than that set in JAVA_HOME, solution: delete java.exe, javaw.exeand javaws.exe. Open the new command line window, and then execute java-version 2. Do not refresh the environment variable to enter the DOS command prompt. Enter: set PATH = C: to close the DOS window. Open the DOS window again and enter echo % PATH %, you can find that the PATH value set in "My Computer"> "properties"> "advanced"> "environment variable" has taken effect. 3. in Path, Oracle is in front of java, and Oracle also has JDK. Therefore, if you run java-version, you actually see the java version in Oracle, and set your % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin; it is okay to move to the beginning, and it will not affect Oracle. I forgot the references...