Windows (win) 10 installs JDK and configures environment variables (with network disk download address)

1. First, let's get the installation package of JDK8

1. You can go directly to the oracle official website to get the JDK: https://www.oracle.com/technetwork/java/javase/downloads/index.html

Because downloading the installation package from oracle now requires registration of an oracle account, and the download speed is limited. So the author provides you with a link to download from Baidu Netdisk.

2. Download via Baidu Netdisk

Link: https://pan.baidu.com/s/1QmHLQ_AH5msHXF1bSBtlxQ Extraction code: 0002 

If the network disk link is invalid, please leave a message in the comment area~

3. In addition, I will give you Amway a way for the author to obtain resources ( remember to give the author a thumbs up if you think it is useful ), the WeChat search applet "Paddy Field Shell" (or scan the applet code below to enter) , there are rich software installations Package (poj version) and Java video tutorial . If you don’t need it for the time being, you can also save it first. These are commonly used resources when we do development, and we may use them someday, so we don’t need to search everywhere~ . At the same time, in order not to waste everyone's time, the author deliberately cut a few pictures for your reference, whether to go and check it as follows.

        

If the resources shared by the author are useful to you, please give the author a thumbs up in the lower right corner~ (manually poor)

Tip: After downloading JDK8 on the official website or Baidu Netdisk, let's go to the installation steps.

Next, enter the installation tutorial

1. Double-click the downloaded JDK installation file [JDK-Windows-8]

2. After clicking, the JDK installation guide pops up, and we directly click [Next].


3. Now enter the [Select JDK installation path] page. Here you can choose your JDK installation path, I chose to install it in the [D:\Java\jdk] directory (you can also use the default path directly), after the selection is complete, click the [Next] button, and the JDK installation will be executed at this time .

Note: Whether it is the default system installation path or a custom installation path, please remember that this address will be used later~

4. After the loading is complete, the [JRE installation directory selection] pop-up window will pop up. It is recommended to select the same parent directory as the JDK for this path. Here I choose [D:\Java\jre]. Click the [Next] button, and the JRE installation will be executed at this time.



5. The following interface pops up to indicate the end of the installation, close the pop-up window. [Next we configure the JDK environment variables]


6. Enter the directory where we installed JDK in [Step 3], and [Copy directory path] (will be useful later).

Tip: This is the installation step you chose in [Step 3]


6. Close the directory, right-click on the [Desktop->This Computer] shortcut, and select the [Properties] column in the pop-up box.


7. Click [Advanced System Settings]


8. Click [Environment Variables]


9. Click the [New] button under [System Variables] to create a new system variable.


10. In the pop-up input box [Variable Name], enter [JAVA_HOME], [Variable Value], enter [JDK installation path, which is the content copied in step 6, mine is (D:\Java\jdk)], enter Click the Confirm button when finished.


11. Find the [path] variable in the [System Variables] list, and double-click to open it.


12. Click the [New] button in the pop-up window, and an input box will pop up below, enter [%JAVA_HOME%\bin] in the input box, and click the [Confirm] button after the input is complete (it will take effect only after clicking oh~).


13. Click the [Confirm button] again to save the environment variables and close the pop-up window. (Be sure to confirm, otherwise it will not take effect)


14. Run the [win+r] key, enter [cmd] and press Enter to end opening the command prompt (if you have opened this window at the beginning, please close and reopen it, otherwise the JDK variable just configured may not be detected)


15. Enter the [javac] and [java -version] commands in the command prompt, and the following interface will appear to indicate that the installation is successful.


16. If the installation fails, please confirm whether the name in your environment variable is correct, and whether the path pointed to by JAVA_HOME is the installation path of your JDK.

If this chapter solves your problem, please give the author a three-link (* ̄︶ ̄)

Guess you like

Origin blog.csdn.net/qq_42825813/article/details/118113194