[Tutorial] JAVA installation and environment configuration (for pure novices)
1. Download
1.jdk
First search for jdk, generally you will find two official websites
. 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.
Choose according to your own computer system and configuration, now it is generally win10 64-bit, just pull it to the last one.
Click the download link and the download window will pop up.
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.
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.
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.
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
Select the location, click Next, and enter the installation.
Wait for the installation to complete, and click Close. The
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
left side to pull down on the right side of Advanced System Settings
select Environment Variables
select Edit Path below
select Add, enter
%JAVA_HOME%\bin
Must be exactly like mine
Then select New below. The 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)
Find the installation location
Or find your installation location, the file structure is like this, copy and paste the address,
confirm and then confirm. The environment is configured
Four, inspection results
Open cmd input
java -version
Can display the following results to indicate success.