Install jdk1.8 (8u281) version installation tutorial in 2023 (nanny level)

Personal test is useful! ! !

1. Download the installation package (including free download address)

1. Official website download address: Java Download|Oracle (oracle.com) 

Click the link to enter the official website

You can see "Products" on the top, click it: Then you can see "Java" in the drop-down menu, let's click it again

2. Then click "Download Java" in the upper right corner

 3. After clicking Download Java, you will go to the download page, but here is the latest version of Java, we choose to click "Java archive" in the middle, here is the Java archive, including all historical versions of java.

 

 4. After clicking in, slide down and down, you can see that there are various historical versions of Java in the column in the lower right corner. Here I choose to download the new Java SE8.

After clicking in, you can drop down to select the appropriate version for you . I use the version of the windowsx 64-bit system. Wow!

 See if you want to install all of these versions, hahahaha, as long as you have time.

 I have already downloaded it, and I can get it for free (csdn download resource address is free)

download link: 

(1 message) Javajdk8u281.zip resource-CSDN library

2. Detailed installation steps

1. Download

After completion, the picture is as follows My location

 2. Double-click, or right-click to install, pop up this box and click Next

 3. Click Next to enter this interface

Sir or Madam, please stay and take a closer look

Note: You can see the default installation path here, and you can choose to change the path yourself, but you need to remember to remember this installation path , which will be used in the configuration environment later .

 Here the author changes my path as shown below:

 Click Next, and this interface suddenly appeared, which startled me. I thought I made a mistake. Later, I found out that it was the installation of jre.

I don't need to say more about jre!

 The author, of course I want to install it. I will change the directory directly and never install it on the C drive to change the directory directly. The following situation occurs.

It seems to be careless.

 Then create a new folder and put it next to jdk to solve the problem perfectly, click Next.

 It is being installed, please wait patiently. . . .

 4. After the installation is complete, click Close to OK

3. Environment variable configuration

1. Follow the author to continue to operate and it is not over yet!

1 The next step is to configure the environment. We find the desktop icon "This Computer", right-click and click "Properties", and then click " Environment Variables ".

Note: If there is no icon of this computer on the desktop, you can choose to search from the "Start" menu of the computer, and you can also find it

After win10 clicks Settings, click About

 Or search for environment variables in the search box

 Windows 11 is also almost searched in the settings.

2. Enter environment variables

We choose to click New in the following system variables to create a new variable.

 Enter the following interface

 3. Enter the variable name: JAVA_HOME, then browse the directory, find the path where jdk was just installed , and set it as the variable value. 

 

 

4. Then click "Path" in the system variable and select New.

Create the following two paths

%JAVA_HOME%\bin

%JAVA_HOME%\jre\bin

 Finally, click OK, and you need to click three OKs in total until you exit the page of system properties.

 

4. Test whether the installation is successful

win+R to open the running window, enter cmd to open the command line, and then enter "java -version", if the java version is successfully printed, it means success~

 Finally, it shows success as follows

 You can start compiling and writing code! ! !

Guess you like

Origin blog.csdn.net/qq_60870118/article/details/129887082