JDK, JRE, JVM

JDK: Java Development Kit

JRE: Java Runtime Environment.

JVM: Java Virtual Machine.

  1. Download JDK, currently most enterprises are using JDK8 (download the corresponding JDK package according to the system version)

    www.oracle.com/cn/java/tec…

  2. Double-click the installation package, change the installation path (E:\ Java \jdk1.8\), click OK, next

  3. Install jre, close the pop-up window (JDK already installed jre)

  4. Configuring environment Variables

    • Open the second computer – right-click the blank area properties – Advanced System Settings – Environment Variables
    • Create a new system variable – variable name: JAVA_HOME Variable value: JDK installation path (E:\ Java \jdk1.8)
    • Configure the path variable: System variable Double-click path and create %JAVA_HOME%\bin. Create %JAVA_HOME%\jre\bin
  5. Open CMD and enter Java -version to check the version and verify the installation