Table of contents
2. JDK environment configuration
3. Verify that the JDK environment configuration is successful
1. JDK download
1. Enter the download address: https://www.oracle.com/downloads/
2. Pull down, see Developer Downloads , click java
3. Click on Java (JDK) for Developers
4. Pull down, Java SE Development Kit 19.0.1downloads, click Windows
5. Select the suffix as exe connection
6. Find the jdk download location from your computer and double-click it.
7. Click Next.
8. Change the download directory and click Next.
9. The installation is complete, click Close.
2. JDK environment configuration
1. Right click on "My Computer" → Properties → Advanced System Settings → Environment Variables
2. In "System Variables", click New
3. The variable name is JAVA_HOME, and the variable value is the installation path of jdk. Click Browse Directory to find the installation directory of jdk.
4. In "System Variables", find Path and double-click it
5. Click New, enter %JAVA_HOME%\bin, and click OK
6. In "System Variables", click New
7. Variable name: classpath Variable value: .;%JAVA_HOME%\lib; Click OK
8. The result is shown in the figure
3. Verify that the JDK environment configuration is successful
1. Go back to the desktop and click the win+R key, enter cmd in the pop-up window, and click OK
2. Enter java
3. Press Enter, the following information appears, which indicates that the JDK environment configuration is successful
4. Check the version of jdk
Type: java -version Press Enter