Download JDK
First we need to download the Java SDK jdk,:http://www.oracle.com/technetwork/java/javase/downloads/index.html, click the download button below:
After downloading the JDK installation according to the prompts, as well as installing the JDK will also install the JRE, installed on it.
Install the JDK, the installation process can customize the installation directory, such as information, such as we choose the installation directory for C:\Program files\java\jdk1.8.0.
Configuring Environment variables
1. After the installation is complete, right-click on "My Computer" and click "Properties";
2. Select the "Advanced" tab and click on "Environment variables";
Then it will appear as shown in the screen
Set 3 properties in "System Variables", Java_home,path,classpath, click "Edit" if it is already present, then click "New" if it does not exist.
The 3 key variable names and attributes are as follows:
- Variable name: java_home
- Variable Value: C:\Program files\java\jdk1.7.0
- 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;
Test whether the JDK was installed successfully
1, according to Win+r; "Run", type "cmd";
2, type the command "java-version" command, appear screen, indicating that the environment variable configuration is successful;
Java Development Environment Configuration (WIN8 64-bit)