Uninstall JDK
- Delete the java installation directory
- Delete JAVA_HOME
- Delete the directory about java under path
- cmd--"java -version check whether the uninstallation is successful
Install JDK
-
Baidu searched JDK8 and found the download address
-
Download the version corresponding to the computer
-
Double click to install JDK
-
Remember the installation path
-
Configure environment variables
-
My Computer -> Right Click -> Properties
-
Environment variable -->JAVA_HOME
-
Configure the path variable
-
-
Whether the test is successful
Open cmd->enter the verification command java -version to check whether the installation is successful, and the following figure will be displayed if it is successful