Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Construction of Java development environment

Shulou Source: shulou.com Published: 2022-06-03 05:49:54 11月16日 Update

First, install JDK

1. JVM (Java Virtual Machine-Java virtual machine)

JRE (Java Runtime Environment-Java Runtime Environment)

JDK (Java Development kit-Java Development Kit)

2. JDK includes JRE and JVM, so after installing JDK, the installation packages of JRE and JVM,JDK can be downloaded from the Oracle official website or from a third-party website. The official download address is provided below:

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

(there are many versions, so choose the applicable version by yourself, omit the installation process, and then take the next step during installation.)

Second, configure environment variables

JAVA_HOME configure JDK installation path

Location of PATH configuration JDK command file

Location of the CLASSPATH configuration class library file

1. My computer (right button)-- > Properties

2. Advanced system settings-- > environment variables

3. There is no JAVA_HOME in the system variable, so you need to edit it as follows:

(the variable value is the path where JDK is installed)

4. PATH already exists in the system variable. Select PATH-- > Edit.

-- > enter the path to Bin first (separate other paths with semicolons)

5. The variables that come with the system do not have CLASSPATH and need to be added.

-- > use "." Represents the current path

Separate with ";"

-- > enter the path to Bil (for example, my path is: C:\ Program Files\ Java\ jdk1.8.0_60\ lib)

This is the end of the configuration, remember to press OK, not sure will not be saved by yourself.

Third, verify the configuration environment variables

Open and run à cmd à enter java/javac to verify (the effect of successful verification is as follows)

If you see this effect, congratulations on your successful configuration.

Tags: Variable path configuration environment system input validation success location that is effect version run development advanced representative semicolon command address official Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Technology MySQL Shulou Information NVidia