The configuration environment variable, basically is in the computer-"attribute---" Advanced system setup---"Environment variable-" system variable
----------------------------
Java_home C:\Program Files (x86) \java\jdk1.7.0_80 (installation directory for Java)
CLASSPATH%java_home%\lib;
path;%java_home%\bin;%java_home%\jre\bin;
-------------------------------
This is basically it.
But when the configuration error, do not know how to check, I here provide a method
While watching [MD Viewing environment variables] (http://blog.csdn.net/zkn_cs_dn_2013/article/details/49122015) This article,
can be through set environment variables, see the corresponding variable, not some of the online said must write absolute path, actually write%java_home%\bin; can be converted to absolute path by variable%java_home%.
Note:
1. View all currently available environment variables: C:\user\admin>Set
2. View an environment variable: enter "Set Variable name", for example, to see the value of the path variable, enter c:\user\admin>Set Path
3, modify the environment variable: enter "Set Variable name = variable content", such as set path to "D:\hacker.exe", as long as the input set path= "D:\nmake.exe".
Note that this modified environment variable refers to the current content to overwrite the previous content, not append. For example, when I set the path above, if I re-enter set path= "C" again, when I look at the path, the value is "C:",
Rather than "D:\nmake.exe"; C ".
4. Set to NULL: If you want to set a variable to NULL, enter "Set Variable name =". If "Set path=" then look at the path is empty. Note that the above has been said to work only in the current command-line window. So don't right-click on "My Computer"-"properties" when viewing path.
5. Append content to variable (different from 3, that is overwrite): enter "Set variable name =% variable name%; variable Contents". For example, to add a new path for path, enter "Set path=%path%;d: \hacker.exe" to add D:\hacker.exe to path and execute "set Path=%path%;c:" Again, then use the set Path statement to view, there will be: d:\hacker.exe;c: Instead of just the 3rd step
Reference: http://blog.csdn.net/zkn_cs_dn_2013/article/details/49122015
WIN10 Configuring Java environment variable issues