1. Download and install the JDK
2. Configure environment variables (Windows 10 as an example)
Open the System interface (WIN10,WIN8 shortcut key win+x and select [System],win7 Start Menu-Computer-Right-click-Properties]
Select [Advanced system Settings]
Select [Environment Variables]
New variable:
Variable name:java_hom
Variable Value: JDK installation path (default to C drive due to different Java version and personal installation path selection)
Variable action: Configure JDK installation path
New variable:
Variable name:CLASSPATH
Variable Value:
.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar
Variable action: Configure the location of the JDK command file
To edit a variable:
Variable name:PATH
Variable value: Add variable value%java_home%\bin and variable value%java_home%\jre\bin
That directly increases the value of the variable first.
%java_home%\bin;%java_home%\jre\bin;
Variable action: Configure the location of the class library file
Note: The value of the variable is used between the variable value; Separated
Win10 added a more defined variable editing interface, you can also click [Edit text], use the traditional variable editing interface
3. Testing
Win+r
Enter cmd and click OK to enter the command line window
Enter Java and return
Enter Javac and return
Conclusion: If there are usage introductions, the Java development environment is successfully built
Java Development Environment Building