current position:Home>JDK installation under Windows system

JDK installation under Windows system

2022-06-24 09:14:48Write casually

1、 Right click this computer -> attribute -> Advanced system setup -> environment variable , System variables → newly build JAVA_HOME Variable
C:\Program Files\Java\jdk1.8.0_191

2、 System variables → seek Path Variable → edit
%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
( Pay attention to the original Path Does the value of the variable end with ; Number , without , First enter ; Enter the above code again )

3、 System variables → newly build CLASSPATH Variable
.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar( Pay attention to the first point )

4、cmd Command to see if the installation is successful
java -version

copyright notice
author[Write casually],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/175/202206240756302371.html

Random recommended