Ava JDK8.0 The entire process is divided into 3 stages: Download installation, set environment variables, debug check. JDK8.0 is divided into 32-bit and 64-bit two versions, select the appropriate version based on the number of operating system bits for your PC. This article takes the 32-bit version of the installation process under Win7 as an example, other environments are similar.
a . Download Installation
1. Download the following two files from Sun's official website http://java.sun.com:
A.JDK-8U5-WINDOWS-I586.EXE,32-bit Windows JDK installation program;
B.JDK-8U5-APIDOCS.ZIP,JDK8 documents for viewing packages, classes;
2. The following URL can quickly find the installation package http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Enter the following interface (e.g.
Figure 1-1), first click on the upper Red Square consent button, and then download Jdk-8u5-windows-i586.exe, Win7 (Win XP and other Windows) system 32-bit machine Please select red circle at the Windows x86 download the installation package, 64-bit machine Select windows x64 Download the installation package.
Fig. 1-1 Installation package download page
3. http://www.oracle.com/technetwork/java/javase/downloads/index.html PAGE DOWN, select the Right red circle button click to enter (as shown in Figure 1-2).
Drawings 1-2 Java SE 8 download page
4. Click the Consent button First, then click Download Jdk-8u5-apidocs.zip, as shown in Figure 1-3.
Drawings 1-3 Zip package download page
5. Download complete, click on the installation file to install, such as the accompanying figure 1-4
Drawings 1-4 JDK8 Installation Wizard page
6. Select the default installation option to change the installation path or select the default path, which is changed to D:\java\
Jdk1.8.0_05\, as shown in Fig. 1-5
Fig. 1-5 Path Selection
7. Start the installation interface as shown in Figure 1-6, you will also encounter a path to select the installation (such as Figure 1-7), modified here to D:\java\jre8\, it is best to install jdk1.8.0_05 and Jre8 in a folder Java, but do not install Jre8 to jdk1.8.0_ 05 folders, the previously downloaded Jdk-8u5-apidocs.zip is also unpacked under the Java folder.
Fig. 1-6 Installation process
Drawings 1-7 JRE Directory selection
8. Installation complete, as shown in Figure 1-8, click Close
Fig. 1-8 Installation Complete
Second, set environment variables
1.win7 System click on the Start menu, right click on the computer, select Properties, or Control Panel-system and security-system, enter the following interface (Figure 1-9), select Advanced System Settings Click Enter, and then select Advanced-environment variables (such as fig. 1-10), click Enter.
Fig. 1-9 Advanced system settings
Fig. 1-10 Location of environment variables
2. Find Java_home in the system variable (not typically), if not, click New, enter Java_home in the variable name, enter the installation path of the JDK in the variable value: "D:\Java\jdk1.8.0_05" (this double quotation mark is not input), click OK, Generate a variable, note that the path here is the same as the path at the time of installation, different installation path variable values, there is no semicolon at the end, such as the figure 1-11.
Fig. 1-11 Adding environment variables
3. In the system variable to find the path variable (usually exist), click the Edit button, found that there are many paths, different computers, such as the following example (Figure 1-12): E:\arm_ads1.2\bin; F:\Windows7Master; C:\ProgramFiles\VirtualCamera\bin There are two ways to add a path at this point (using Method 2 here), click the OK button after adding:
(1) At the beginning of all existing paths, add the following path without entering double quotes
"%java_home%\bin;%java_home%\jre\bin;"
Note: The trailing number cannot be less, it is the delimiter between each path.
(2) At the end of all existing paths, add the following path without entering double quotes
";%java_home%\bin;%java_home%\jre\bin"
Note: The semicolon at the beginning cannot be less, it is the delimiter between each path.
Fig. 1-12 Modifying the PATH environment variable
4. Find Classpath (not normally), if not, click the New button, enter CLASSPATH in the variable name, and enter it in the variable value (as shown in Figure 1-13):
“.; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar "
Note that the beginning of the dot and semicolon do not miss out, the dot represents the current directory.
Then click OK-OK to complete the environment variable settings.
Fig. 1-13 New CLASSPATH environment variable
Third, commissioning check
1. Below to start detecting whether the JDK was successfully installed, click Start Menu-run, enter CMD (as shown in Figure 1-14), the following interface appears (Fig. 1-15).
Fig. 1-14 Running the Command window
Drawings 1-15 cmd window
2. Enter Java–version, note that there is a space between Java and--Displays the output Java version of the signal, such as the accompanying figure 1-16.
Drawings 1-16 java–version Command View results
3. Then enter Java, the following information appears, such as the figure 1-17.
Drawings 1-17 java Command View results
4. Re-enter Javac, the following information appears (Figure 1-18), if the 3 information can be displayed correctly, the JDK installation is successful.
Drawings 1-18 javac Command View results
Installation and configuration of Java JDK8.0