1 Installing the JDK (Java Development Kit)
Install the JDK and JRE in a unified root directory, such as the develop directory, after the installation is complete, verify the installation is successful, in the DOS system to switch files to the bin directory, run Java or javac, the correct operation is installed successfully.
2 Configuring Java Environment variables
Computer (right-click Property)-Advanced system Settings-advanced-"Environment variables-" System variables
2-1) configuration Java_home
New Java_home, Value for JDK path (for example: D:\JavaDevelop\java1.7\jdk1.7.0_72)
2-2) Configure path
Found in system variables , at the top of Merit:%java_home%\bin;%java_home%\jre\bin;
2-3) configuration Classpath
To create a new classpath, the value is:
.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
3 detection is configured successfully
Check that the environment variable is already configured successfully: in console input: java-version
Build a Java development environment under Windows