1. Download and install JDK

Download link:

www.oracle.com/java/techno…

Either java8 or java11 can be downloaded, and other versions are not recommended if they are not stable

Click JDK Download to go to the Download page, and then start downloading JDK based on your operating system

After the download is complete, you can change the installation location, or you can default its installation path, remember to install the installation path does not contain some special characters such as Chinese, so as to avoid some unnecessary trouble in the subsequent use

2. Configure environment variables

Right click on the computer and then click properties

Click advanced System Settings on the right

Click on environment variables

Click on the new one below, which can only be configured for a single user’s environment variables, and the new one below is configured for global variables

Enter JAVA_HOME in the variable name. The variable value is the path you chose when installing Java. Try to copy and paste the variable value

After the configuration is complete, click OK, and then double-click a variable named Path

Click Edit, then type %JAVA_HOME%\bin, make sure not to type the wrong backslash, it is the one above Enter key, after entering the interface will open, click OK, do not click X in the upper right, otherwise the configuration will not be saved

After completion, press win +R on the keyboard, enter CMD in the pop-up window and then click OK or press Enter, a new window will pop up. In the new window that pops up, enter javac and press Enter to verify whether the installation is successful. If the installation is successful, a long string of words will pop up after javac press enter

This article is collated and published by Fan Rabbit education Figure 2 UR, Fan Rabbit education is a pan-Internet vocational education platform, the official website address: ftuedu.com/1.JDK download and installation

Download link:

www.oracle.com/java/techno…

Either java8 or java11 can be downloaded, and other versions are not recommended if they are not stable

Click JDK Download to go to the Download page, and then start downloading JDK based on your operating system

After the download is complete, you can change the installation location, or you can default its installation path, remember to install the installation path does not contain some special characters such as Chinese, so as to avoid some unnecessary trouble in the subsequent use

2. Configure environment variables

Right click on the computer and then click properties

Click advanced System Settings on the right

Click on environment variables

Click on the new one below, which can only be configured for a single user’s environment variables, and the new one below is configured for global variables

Enter JAVA_HOME in the variable name. The variable value is the path you chose when installing Java. Try to copy and paste the variable value

After the configuration is complete, click OK, and then double-click a variable named Path

Click Edit, then type %JAVA_HOME%\bin, make sure not to type the wrong backslash, it is the one above Enter key, after entering the interface will open, click OK, do not click X in the upper right, otherwise the configuration will not be saved

After completion, press win +R on the keyboard, enter CMD in the pop-up window and then click OK or press Enter, a new window will pop up. In the new window that pops up, enter javac and press Enter to verify whether the installation is successful. If the installation is successful, a long string of words will pop up after javac press enter

This article is compiled and published by Fan Rabbit Education Picture 2 UR, Fan Rabbit education is a pan-Internet vocational education platform, official website address: ftuedu.com/