Installation jdk
Search Oracle official website to download jdk
The English version of the official website: https: //www.oracle.com/index.html (recommended)
Chinese version of the official website: https: //www.oracle.com/cn/index.html (not recommended)
The easiest way to directly search: Oracle (highly recommended)
Then click, as
Click to enter Product Help bar Downloads (download)
Click to see JAVA looking into (the Database below)
Click JDK, go in there will be many versions of JAVA SE can download it to use it to build environment
After selecting a version of himself in, according to their system select the appropriate version and download the median
Click to download must remember hook consent before they can download
After the download is complete, start running jdk, began to run directly click Next, and then completely change the installation folder (not very recommended to install the C drive), and then click Next, you install the program, you can close the installation is complete.
Configuration environment variable:
Right-click the computer, and then click "Properties" in the select Advanced System Settings, then click the "Advanced" inside the "Environment Variables" system variables to create a new variable
Variable name: JAVA_HOME (all caps)
Variable value: browse the directory where to find the installation path of my jdk installation path, as shown:
After the completion of the new find in the system variables in the "Path" double-click to open, enter the "editing environment variable" direct two new variables,
The first is: % JAVA_HOME% \ bin
The second is: % JAVA_HOME% \ jre \ bin
After you configure the two points is determined, the remaining open also click OK, the installation and configuration jdk environment is complete.
The final step in testing whether jdk installed can be used normally, Win + R to open the Run, type cmd,
Enter javac Enter, then enter java Enter the version information if both appear to be properly used.