JAVA SE(3) Environment Preparation——JDK(1) 2020-12-14

Environmental preparation (1)

JDK environment preparation

table of Contents

Download JDK

Install JDK

JDK environment variable configuration

Verify that the JDK is installed successfully

Uninstall JDK

supplement


Download JDK

Address: www.oracle.com/technetwork/java/javase/downloads/index.html

Install JDK

Set the installation location yourself

JDK environment variable configuration

This computer——>Properties——>Advanced System Settings——>Advanced——>Environment Variables——>System Variables

    (1) Create a new JAVA_HOME variable, the variable value is C:\Program Files\Java\jdk1.8.0_144 ( JDK installation path )

  

      (2) Create a new classpath variable, the variable values ​​are  %JAVA_HOME%\lib\tools.jar and %JAVA_HOME%\lib\dt.jar .

   

        (3) Add the Path variable, the variable values ​​are  %JAVA_HOME%\bin and  %JAVA_HOME%\jre\bin .

    

Verify that the JDK is installed successfully

    (1) Method 1: Go to the installation directory to see if the installation is successful

      

     (2) Method 2: View through console commands

       

      (3) View through the control panel

     

Uninstall JDK

Uninstall the control panel

supplement

JDK (Java Development Kit)-Java Development Kit

JRE (Java Runtime Environment)-Java runtime environment

Guess you like

Origin blog.csdn.net/wqh101121/article/details/111184608