Build a java Development Environment on your computer and a java Development Environment
1. download and install the corresponding jdk.
Download the jdk corresponding to your computer from the official oracle website, and open the ghost link:
Figure 1
Because my system is 64-bit, select x64 download. (It is best to use your computer system here, for a 32-bit system, you need to download the one ending with x86 ). Important: accept the agreement before downloading. After downloading
Figure 2
Decompress the package
Figure 3
Double-click the red. EXE file in Figure 3. During the installation process, click Next. I don't mind changing the installation directory (many people may think that my drive C is about to blow up. Don't install it on the drive C? Do not think so. It is best to install it on the C disk, and it will be more than 200 MB, which will not occupy much of your memory ). After the installation is complete, a java folder will appear in the C Drive Program Files folder on the computer.
Figure 4
It is the jdk you installed. If your computer system is 32-bit, the java folder will be in this directory.
Figure 5
2. Configure java environment variables.
Go to the jdk folder in the java folder.
Figure 6
Copy the above disk path. Find the computer icon on the computer desk (or enter sysdm. cpl In the cmd window of the computer to set the environment variable ). Right-click "properties" to enter
Figure 7
Click "Advanced System settings" to enter
Figure 8
Click "environment variable" to enter
Figure 9
Under "system variables", click "new" to enter
Figure 10
Add the environment variable JAVA_HOME. The variable value is the jdk installation directory (C: \ Program Files \ Java \ jdk1.8.0 _ 111) Copied earlier. Click "OK ". Similarly, an environment variable for CLASSPATH is added. For the variable value of CLASSPATH, see Figure 11.
Figure 11
Find the "path" variable in the system environment variable.
Figure 12
Click "edit", create two environment variables shown in Step 13, and click "OK ". So far, java jdk installation and environment variable configuration have been completed. Finally, check whether the environment variable is successfully configured.
Figure 13
3. test environment variables.
Open the cmd window and enter java
Figure 14
Enter javac
Figure 15
Congratulations! Java environment variable configuration is successful. You can proceed to the next step. If you have any questions, add qq (1677585879) to ask.