1. Download and install the corresponding JDK.
Download the computer's JDK on the Oracle website and open the link http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html, as shown in the following link:
Figure A
Here because my system is 64-bit, so choose x64 Download, (this is best based on your computer system, if the 32-bit system will need to download the end of the x86). A certain point to accept the agreement before downloading, after downloading
Figure II
Unzip it.
Might
Double-click on the red. exe file to execute, the installation process has been click on the next step is good, do not mind to replace the installation directory (many students may think my C disk is quick to explode, do not install in the C drive it?) Do not think so, preferably in the C-drive, it is more than 200 trillion, not to account for how much memory you. A Java folder appears in the computer's C Program Files folder after installation is complete
Figure Four
It is the JDK you installed. If your computer system is 32-bit, then the Java folder will be in this directory
Figure Five
2. Configure the environment variables for Java.
Access the JDK folder inside the Java folder
Figure Six
Copy the above disk path. Locate this computer icon on the desktop of your computer (or enter the settings for the environment variable directly in the CMD window of your computer sysdm.cpl). Right-click on "Properties" to enter
Figure Seven
Click "Advanced System Settings" to enter
Figure Eight
Click on "Environment variables" to enter
Figure Nine
Under "System Variables", click "New" to enter
Figure 10
To increase the environment variable java_home, the variable value is the installation directory (C:\Program files\java\jdk1.8.0_111) of the previously copied JDK, click "OK". Similarly add a CLASSPATH environment variable, classpath variable value reference Figure 11, for the fixed notation
Figure 11
Find the variable "path" in the system environment variable
Figure 12
Click "Edit" to create the two environment variables shown in 13 and click "OK". So far Java's configuration of JDK installation and environment variables has been completed, and the final test is to see if the environment variable is configured successfully.
Figure 13
3. Testing of environmental variables.
Open the cmd window and enter Java
Figure 14
then enter Javac
Figure 15
The result, then congratulate you! Java environment variable configuration is successful, you can do the next work. If you have any questions, you can add my QQ (1677585879) to inquire.
Build a Java development environment on your computer