Window System installation Java
Download JDK
First we need to download the Java Development Kit jdk,:http://www.oracle.com/technetwork/java/javase/downloads/index.html
Click the Download button, the current main new version, click to jump to this page
The key point of the license to download.
Download the required version, install it, and choose the installation location during the installation process. For example I installed in D:\Program Files (x86) \java\jdk1.8.0_131
Configuring Environment variables
1. After the installation is complete, right-click on the computer location, select Properties, click Enter
2. Select Advanced System Settings
3. Select Environment variables
4. Go to the following interface, I have this configuration is complete. The user variable is valid only for the current user and the system variable is valid under the current system.
Set 3 properties in "System variable", Java_home,path,classpath (case does not matter), if already exist then click "Edit", if there are other variables under the same variable name, use ";" Separate; Click "New" if it does not exist.
The variable setting parameters are as follows:
- Variable name:java_home
- Variable value:D:\Program Files (x86) \java\jdk1.8.0_131 //To be configured according to your actual path
- Variable name:CLASSPATH
- Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; Remember, there's a "." in front.
- Variable name:Path
- Variable value:%java_home%\bin;%java_home%\jre\bin;
Choose between user variables or system variables based on individual needs (I personally use user variables)
java_home Settings
Path Settings
classpath Settings
test whether the JDK was installed successfully
1, "Start", "Run", type "cmd";
2. Test input: Java-version
Test input: Javac-version
The following information appears stating that the environment variable is configured successfully;
If you output this content, the configuration error, please carefully check the configuration variables
Java Development Environment Configuration (Windows chapter)