Java_home: D:\soft\study\jdk1.7.0_01
Java_home configuration is the path of our JDK installation, so the configuration is good. If you are going to use java_home, then do not add a semicolon (;), which is a problem in the back of the java_home. As follows:
Path: .; %java_home%\bin;
This path is used in the java_home above. There are a few points to note:
1. The path is preceded by a dot (.) to specify the current folder;
2. This path is added to the system's original path (%systemroot%\system32;%systemroot%; ...). Front
3. There must be a semicolon (;) separated between this path and the system's original path.
As follows:
CLASSPATH: .; %java_home%\lib\dt.jar;%java_home%\lib\toos.jar;
Classpath there's nothing to notice here, the only possibility is to check if the files in the path above exist. As follows:
Correct configuration of path and Classpath in Java