Configuration of Java environment variables (in Win10 environment)
1. Win10 computers with jdk installed
1. Find "this computer" first, and then right-click to select properties.
2. Select advanced system settings
3. Select environmental variables
4. Select New, and the variable is named (JAVA_HOME). The value of the variable is the path where jdk was installed before. Mine is installed in E:\ Program Files\ Java\ jdk1.7.0_65_64. Yours depends on your own.
5. Find CLASSPATH and create a new one if it doesn't arrive. The variable name is CLASSPATH and the value of the variable is.;% JAVA_HOME%\ lib\ dt.jar;%JAVA_HOME%\ lib\ tools.jar. (you can't lose a symbol here. See the value in the picture clearly and pay attention to the front dot and comma.)
6. Find the Path, edit it and add it at the beginning or end, and click the New button to add the variable value as% JAVA_HOME%\ bin (or the absolute path E:\ Program Files\ Java\ jdk1.7.0_65_64\ bin).
Add the variable value% JAVA_HOME%\ jre\ bin (or the absolute path E:\ Program Files\ Java\ jdk1.7.0_65_64\ jre\ bin) at the new point.
[adding variables in window10 is a little different from adding variables before. Before, the system can add semicolons after path, but windwos10 needs to add related variables one by one]