[Tutorial] JAVA installation and environment configuration (for pure novices)

1. Download

1.jdk

First search for jdk, generally you will find two official websites
jdk
. The first is JDK1.8 and the second is jdk15. Both of these can be used. You can check the difference by yourself (of course, the larger the number, the better).

2. JDK1.8

If you choose jdk1.8, you can directly pull down to see many download options, just choose this one without samples, and the other one with samples.
only

Choose according to your own computer system and configuration, now it is generally win10 64-bit, just pull it to the last one.
Oracle
Click the download link and the download window will pop up. down1
Check it first and then click to download. The domestic download will be slower. If there is a "scientific method", it can be faster. If you don't understand this sentence, just wait a little longer.

3.JDK15

If it is JDK15, you can see the download link by pulling it down slightly.
down2
After clicking it, you will jump to the page for selecting the system and configuration, and you can find
it by pulling it down. Now it is generally win10 64-bit, select the two items at the bottom, the
difference is one is installation The package needs to be installed and used. One is to use the compressed package after decompression.
down3

Two, installation

1. Use the installation package

If you choose the jdk1.8 or jdk15 installation package, you only need to double-click to run the installer.
I take jdk15 as an example, jdk1.8 is exactly the same.
First, give permissions, don’t be afraid that the official version is no problem. admin
After clicking Next once, select the installation location
The location of the installation is very important, you must remember that you will use it later, it is best not to bring Chinese
local
Select the location, click Next, and enter the installation.
install
Wait for the installation to complete, and click Close. The
close
installation is now complete, but it cannot be used normally. Next, you need to configure the environment.

2. Use compressed packages

Choose a decompression locationLocation is very important, you must remember and don’t have Chinese. Just unzip it directly.

Three, configuration environment

Open the settings, the system
setting
left side to pull down on the right side of Advanced System Settings
about
select Environment Variables
path
select Edit Path below path
select Add, enter

%JAVA_HOME%\bin

Must be exactly like mine
path
Then select New below. The new
new
variable name is

JAVA_HOME

Must be exactly like mine
Then choose to browse the directory (you can also choose to paste the path)

select
Find the installation location
Insert picture description here

Or find your installation location, the file structure is like this, copy and paste the address, to you
confirm and then confirm. The environment is configured

Four, inspection results

Open cmd input

java -version

Can display the following results to indicate success.
years

Guess you like

Origin blog.csdn.net/l1447320229/article/details/111938255