Preface:The first step in learning Java programming is to install the JDK, which is the first step in Java development and Android development. Here's how to download and install the JDK from the official website and test if the installation was successful.
. First, the JDK download
Address: HTTP://WWW.ORACLE.COM/CN
1. Hover over the download, then click on select Java SE
2. Click Java SE, then select the Download bar, then click Go to download the catalogue
3. Enter the download directory select "Accept license Agreement" or the official will not allow the download. And then find the corresponding computer system and the operating system to download
Ii. installation of JDK 1. Select the development tool first, then select the installation path, then Next, next ... It's ready for installation.
2. Start-and-run->cmd->java-version if you can see the following interface, indicating that the installation was successful
Third, configure environment variables
Right-click My Computer, properties, advanced environment variables, modify the values in the box below the system variable.
1. Add Java_home variable
Java_home Variable Value: is the root directory of your JDK installation
Java_home is a variable, once defined can be repeatedly referenced, the reference method%java_home%
2.
add content to path
%java_home%\bin;%java_home%\jre\bin;
Before adding to the path variable, do not change the value of the variable. Note separated by semicolons
3.
Increase Classpath
New CLASSPATH variables, system variables
Variable values are filled in.; %java_home%\lib;%java_home%\lib\tools.jar (Note that there is a point first and (in English) a semicolon begins)
We have finished downloading, installing and configuring the JDK here.
Classroom essay "Java" First lesson JDK download, installation and configuration