jdk1.8 installation tutorial and environment variable configuration (including jdk8, 11, 13 installation files)

friendly reminder

First look at the article directory to get a general understanding of the structure of the knowledge points. You can directly click on the article directory to jump to the specified location of the article.

Chapter 1, JVM, JRE, JDK Introduction

(1) JVM (JVM Java Virtual Machine): The core mechanism, the Java virtual machine
JVM is a virtual computer with an instruction set and uses different storage areas. Responsible for executing instructions, managing data, memory, and registers. The Java virtual machine mechanism shields the differences of the underlying operating platforms and realizes "compile once, run across platforms".

(2) JRE (Java Runtime Environment)
includes the Java virtual machine and the core class libraries required by Java programs. If you want to run a developed Java program, you only need to install JRE in the computer.

(3) JDK (Java Development Kit Java Development Kit)
which contains java development tools, including JRE. So after installing the JDK, there is no need to install the JRE separately. Among them, the development tools: compilation tool (javac.exe), packaging tool (jar.exe), etc.

Chapter 2, Download and Install JDK

2.1) Baidu network disk direct download without installation

①My Baidu network disk downloads for free: Baidu network disk extraction code bybp
insert image description here
②After downloading
, you can use it directly without installation
insert image description here

2.2) Download and install JDK from the official website (fee required)

①Download from oracle official website (fees are not recommended): Official website download address
insert image description here
②Double-click the installation file after downloading, just go to the next step without thinking
insert image description here
③Change the installation directory ③Continue
insert image description here
to the next step until installation
insert image description here

Chapter 3, Environment variable configuration

3.1) Windows environment variable configuration

①Win+E to open the manager –> This computer –> Properties
insert image description here
②Choose advanced system settings ③Choose
insert image description here
environment variables ④Create
insert image description here
new system variables ⑤Enter the variable name and the file path
insert image description here
downloaded and installed before, click OK %JAVA_HOME%\bin
insert image description here

insert image description here

insert image description here

3.2) Verify whether the environment variable is configured successfully

After confirmation, win+r, enter cmd to open the command window, enter javac to run, and the following interface will appear after success
insert image description here

Guess you like

Origin blog.csdn.net/baomingshu/article/details/131761344