Article directory
Attached is a tutorial on uninstalling JDK1.8 on Windows 10
Super detailed tutorial on uninstalling JDK1.8 on Windows 10
最近笔者在学习JDK1.8与JDK11版本切换时,更加深入的了解了JDK1.8,发现此篇JDK1.8安装与配置教程中配置%JAVA_HOME%\jre\bin环境变量此步骤为多余步骤,因为JDK1.8的文件夹中已然包含了jre,那么我们只需要配置好%JAVA_HOME%环境变量,即只需要配置好jdk路径,计算机即可找到相应的jre,无需再配置jre环境变量。并且之后在进行JDK版本切换时也更加方便,特在此进行更新,更新日期:2023/4/4。
JDK1.8 is JDK8. JDK8 is currently the most mature and stable version. For the installation and configuration of JDK, the installation and configuration steps of various JDK versions of Windows are the same. Learning the installation and configuration of JDK1.8 version is equivalent to I have also learned the installation and configuration of other Windows versions of JDK. This article will introduce the installation and configuration of JDK1.8 in detail.
1. JDK download
First open the oracle official website. The home page address of the official website is
the home page address of the oracle official website.
Click Products
Click on Java
Click Download Java
Scroll down to find Java 8 ------> Select the system version you want to install . My computer is a Windows system, so I installed the Windows version here ------> Click Windows ------ >Choose a JDK version with the same number of bits as your computer system ( x64 represents a 64-bit machine, x86 represents a 32-bit machine ) ------> The author's machine is a 64-bit machine, so I choose x64 Installer
After clicking, the following dialog box will pop up, click to check ---->Click Download
After clicking Download, the login interface will pop up. If you do not have an account or password, you need to register it. It will not be recorded here (the Oracle password requirement is that the password must contain both uppercase and lowercase letters and at least 1 number and special character, and must not contain your email address or Same as and must be at least 8 characters in length ) You need to pay attention to the format here, because the author forgets it every time and has to reset the password every time. After logging in, the download can start
2. Install JDK
After the download is complete, click the exe file ------> click Next
Here, the author suggests that you can use your mobile phone to take photos or computer screenshots to remember this path. It is recommended to install it directly by default. If the C drive has insufficient space, install it on another drive. If you install on another drive, be sure to remember the installation path and click Next.
At this step, if the previous step is the default installation, you can click Next directly in this step. Comparing the upper and lower pictures, we can see that jdk and jre need to be installed in the same folder (preferably installed in the same folder); if the previous step is not Default installation, here you need to change the jre installation path to the same folder as jdk, and then click Next
Click to close
3. Configure JDK environment variables
Open file explorer
Right click on this PC ------> select Properties
Find and select Advanced system settings
Click on environment variables
Click New under System Variables
Create a new JAVA_HOME variable
JAVA_HOME
Edit the Path variable.
Select the Path variable in the system variables and click Edit.
After entering, click New ------> enter %JAVA_HOME%\bin
%JAVA_HOME%\bin
Click to confirm
Click to confirm
4. Verify whether the JDK is configured successfully
Open cmd (or Windows+R key to open the run window and enter cmd)
After opening, enter java , and after pressing the Enter key, the content as shown below will be displayed.
java
After entering javac and pressing the Enter key, the content as shown below will be displayed.
javac
Finally enter java -version , (Note that there is a space between java and -version. Please leave a space between them when entering the command.) After pressing the Enter key, the content as shown below will be displayed.
java -version
If everything is displayed correctly, the configuration is complete! ! !