content
2. Install JDK (you can click Next for all)
3. Environment variable configuration
1. Right click on this computer - click properties
2. Click Advanced System Settings
3. Click Environment Variables
7. New ======%JAVA_HOME%\bin======New %JAVA_HOME%\jre\bin
1. Download JDK
Download from Oracle's official website https://www.oracle.com/java/technologies/downloads/
The download process may be very slow, you can use the relevant domestic mirror website to download
For example: JDK Download - Programming Treasure
2. Install JDK (you can click Next for all)
1. Double-click to start the installation
2. Click Next
3. You can choose the installation directory (recommended default) and then the next step (wait for it to be installed)
3. Environment variable configuration
Note: The new version of JDK17 will automatically configure environment variables. In the dos command window, entering java, javac and java -version can pop up relevant JDK information, but in the subsequent use, there will be some third-party software and The JDK default configuration environment variables are incompatible, so it is recommended to manually configure the JDK environment variables
1. Right click on this computer - click properties
2. Click Advanced System Settings
3. Click Environment Variables
4. Click New
5. Create JAVA_HOME (named "JAVA_HOME", the value is the directory of the jdk you installed) -- click OK
6. Double-click path
7. New ======%JAVA_HOME%\bin======New %JAVA_HOME%\jre\bin
Run java -version on the command line and the following interface appears, indicating that the configuration is successful