1. Download JDK;
1. Download directly from the official website: http://www.oracle.com/;
2. I am using 1.8, Alibaba Cloud Disk Sharing Address: https://www.aliyundrive.com/s/u4V9x1AHL2r
2.Install jdk
Double-click to install and click Next. If you do not change the path, continue to the next step.
Once the installation is complete, just click Close!
3. Configure environment variables below
Right-click Computer or My Computer and click Properties to find the environment variables
1. Add the system variable
JAVA_HOME
C:\Program Files\Java\jdk1.8.0_181
2. Edit the system variable Path
and add;%JAVA_HOME%\bin;%JAVA_HOME%\jre\ bin
3. Test whether the installation and configuration are successful. Use
win+R
to enter the java, javac, and java -version commands to see if you can see the JDK compiler information;
java
javac
java -version