jdk installation and configuration environment

jdk installation

Insert picture description here
Insert picture description here
Choose whether to change the installation directory according to your own computer needs. The blogger’s solid-state hard drive is relatively small. In order not to slow down the computer, choose to install to the mechanical disk (change the directory, remember, useful) and
Insert picture description here
Insert picture description here
change it to the same Java file. The
Insert picture description here
Insert picture description here
installation is complete.

jdk environment configuration

This computer-right click-properties
Insert picture description here

Insert picture description here
Insert picture description here
Insert picture description here

The variable name is JAVA_HOME, and the variable value is filled with the final path of the JDK installation

Find the path system variable, double-click
Insert picture description here
Insert picture description here
Insert picture description here

Add directly at the end; %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
also add the semicolon before and after
Insert picture description here
Add
Variable name CLASSPATH
variable value%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools .jar
Insert picture description here
Insert picture description here

Test jdk

Open the cmd command console, enter java,
Insert picture description here
enter javac,
Insert picture description here
enter java -version (symbol-there is a space in front of it)
Insert picture description here
are normal, which means the installation is successful

Guess you like

Origin blog.csdn.net/weixin_50835854/article/details/114413558