Configuration of Windows10 java environment variables

  1. First check whether jdk is installed using the command java -version (already installed successfully)
  2. Download address link .

insert image description here
Environment variables (right click on this computer - advanced system settings - environment variables) To
insert image description here
insert image description here
configure jdk , you
insert image description here
need to configure CLASSPATH

CLASSPATH
前面有文件复制这个
.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;
前面没有文件复制
;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;

insert image description here
configure path

%JAVA_HOME%\bin
%JAVA_HOME%\jre\bin

insert image description here
Finally, click OK to complete the configuration.
After completion, use the cmd command box to execute java -version to determine whether the installation is successful
insert image description here

Guess you like

Origin blog.csdn.net/weixin_44826661/article/details/123771288
Recommended