JAVA——download and install jdk8, configure JDK environment variables under win10

JDK download and installation

download JDK

1. Enter oracle official website:
www.oracle.com/technetwork/java/javase/downloads/index.html

2. Click Products on the page
insert image description here
3. Find and select Java in the Hardware and Software category in Products
insert image description here
4. Click Download Java
insert image description here
5. At present, most companies use Java8, and we can also use Java8 for learning, and later according to needs The environment needs to be changed. Pull down the interface, select Java8, and then select the required jdk according to the actual operating system and digits of your computer, and click to download.
insert image description here

Install JDK

Just follow the system prompts. When selecting the JDK installation directory, you can use the default (if you must customize it, the path should not include the Chinese path) Note
: Here you can record this path, and you need to use it for subsequent configuration of environment variables

JDK environment variable configuration (configure JDK8 under win10)

path: must be configured. Path is a common environment variable, which tells the system to search for the program in the directory specified by path in addition to the current directory.

JAVA_HOME: Recommended configuration. Prepare for other software looking for JDK in the future.

classpath: can not be configured

configuration steps

1. Right click on this computer - select properties - select advanced system settings

2. Click the environment variable environment variable in the interface as shown below
insert image description here
3. Click New in the system variable of the interface as shown below
insert image description here4. In the variable name line of the pop-up interface, fill in: JAVA_HOME (recommended to copy and paste)
and the variable value line, you need We copy and fill in the download directory of jdk
insert image description here
Find and copy the download directory of jdk
insert image description here
5. Select Path in the system variable, click Edit
insert image description here
6. Select New on the Edit Environment Variables page
insert image description here
7. Fill in the newly created new line: %JAVA_HOME%\bin (recommended to copy and paste)

8. After completion, select the line *%JAVA_HOME%\bin*, click Move Up, and move this line to the top, so that this path can be used first

Verify that the JDK configuration is successful

1. Press and hold the window key + R, enter cmd in the pop-up interface and select OK
insert image description here

2. Enter in the pop-up control panel: java -version
insert image description here
If the content in the brown box appears, it means the configuration is successful.

Congratulations~ Come on!
insert image description here

Guess you like

Origin blog.csdn.net/TIpotencial/article/details/126800286