Home >Java >javaTutorial >JDK1.8 download and installation (complete graphic tutorial)
JDK1.8 download and installation (complete graphic tutorial):
Today, we will guide you step by step (pictures and text) to download and install.
1.jdk1.8 download
2.jdk1.8 installation
1. JDK download
Two kinds The first method is to download it from the official website; the second method is to use it, Xiaona will directly give you the network disk address. However, as a Java novice, it is best to learn to download from the official website.
The files downloaded from the official website are the safest. If downloaded from an unreliable third party, the installation package may be missing or a virus or Trojan horse may be planted. Besides, it is possible that one day I install jdk for others or upgrade jdk myself, but I cannot find the network disk address and have to go back and click on skill points.
Search "jdk download" on Baidu (or other search engines), and the first one is the 1.8 download link.
1. Click to enter the download page
Page address: https://www.oracle.com/technetwork /java/javase/downloads/jdk8-downloads-2133151.html
Currently, the official has just made a bug upgrade to 1.8. It is strongly recommended to use the minor version of 191 or 192. Here we choose 8u191.
2. First select Accept Agreement above, and then select the package suitable for your operating system
Here we choose the last windows 64-bit installation package , click jdk-8u191-windows-x64.exe on the right side of the red box to download.
2. jdk installation
Now the installation of jdk is much simpler than various articles on the Internet, let’s get it done.
1. Double-click the downloaded exe file to start the installation. As shown below, click Next.
2. Select the jdk installation directory. It is recommended that you put it on the C drive even if you do not use the default path, unless Your C drive is running out of space.
3. Click Next directly, and the alarm information as shown below will appear.
It can only be said that the recent jdk major version has been updated too quickly, and the official maintenance will be stopped in January 2019. This is not a big deal, 1.7 has been out of official management for a long time, and it is still alive and well.
Click "OK" directly to continue.
#4. Think the installation is over? Another window pops up, and you have to select a folder. It's not a problem with the installation program. If you look carefully, what is installed is not jdk, but jre.
This part is also mentioned in the "Version Selection" article. jre is a package used for runtime and is part of jdk.
If there are no special requirements, there is no need to change the installation directory, click "Next"
5. Finally, a pop-up window will tell you that the installation has been successful. .
#6. However, if you have read other installation articles, they will definitely mention configuring "environment variables".
Let me first explain the role of configuring environment variables, which is to let the operating system clearly know the program and its location. Usually used in command line mode. Under Windows, click the "Start" button in the lower left corner, directly enter "cmd" and press Enter to enter the command line interface.
7. Enter the statement java -version to see the version information of the installed jdk. It prompts that the java version is 1.8.0.191, indicating that the installation is successful.
Then there is a problem. I only typed a java command. How can the system respond to which program is executed? This is the role of environment variables. For configured programs, the operating system can automatically identify them and find the program at the corresponding location to execute.
This brings up another problem. How can we execute the result even though there are no environment variables? In fact, jdk after 1.8 will automatically add environment variables. Therefore, those articles on the Internet that also emphasize configuration are either old jdk versions that are outdated; or they are taken for granted and have no actual installation.
Then let’s take a look at how the environment variables are configured. Right-click the "Computer" icon on the desktop and select "Properties".
Click Advanced System Settings, on the "Advanced" tab, click the "Environment Variables" button below.
Usually add a new environment variable in the path field, double-click to view
#The first one is the path to java. It can be seen that it has been configured.
#OK, there should be no problem with the installation here.
In this career of development, there is nothing you don’t know how to do, so easy!!!
Recommended tutorial: "java tutorial"
The above is the detailed content of JDK1.8 download and installation (complete graphic tutorial). For more information, please follow other related articles on the PHP Chinese website!