The use of Java software requires changing the configuration environment variables. Takes 2 steps.
First, find the location of the configuration environment variable in your computer:
My Computer, properties, advanced, environment variables.
Second, add two variables and change a variable:
1, variable name: java_home
Variable value: Where Java files are located
2, variable name: CLASSPATH
Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
3. Change the variable contents of path.
Variable name: Path
Variable value:%java_home%\bin;%java_home%\jre\bin is added before the value of its original variable; The original variable value is too long, you can press the home key to find the value of the front of the variable.
When you are ready, you can open the console and output Java to test if it is operational.
The Java Configuration environment variable