JDK installation and uninstallation

Uninstall JDK

  1. Delete the java installation directory
  2. Delete JAVA_HOME
  3. Delete the directory about java under path
  4. cmd--"java -version check whether the uninstallation is successful

Install JDK

  1. Baidu searched JDK8 and found the download address

  2. Download the version corresponding to the computer

  3. Double click to install JDK

  4. Remember the installation path

  5. Configure environment variables

    1. My Computer -> Right Click -> Properties

    2. Environment variable -->JAVA_HOME
      Insert picture description here

    3. Configure the path variable

    Insert picture description here

  6. 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

Insert picture description here

Guess you like

Origin blog.csdn.net/wefree6666/article/details/114265178