Java-Window environment configuration

JDK download

Official website: https://www.oracle.com/java/technologies/javase-jdk8-downloads.html

Baidu network disk:

Link: https://pan.baidu.com/s/1lSsmv5k1yNSHFzrVlqi8_g 

Extraction code: uzmj 

 

Install JDK

Remember the installation path! !

Remember the installation path! !

Remember the installation path! !

 

Configure environment variables

For Java program development, the two commands of JDK are mainly used: javac.exe, java.exe, the main path: C: \ Java \ jdk 1.7.0 _09 \ bin [mainly the bin directory, the JDK you install Find under the directory]

 

Then go to configure environment variables, computer-property-advanced system settings

 

 

 

 

Configure environment variables

New- > variable name "JAVA_HOME", variable value "C: \ Java \ jdk1.8.0_05" (that is, JDK installation path)
Edit- > variable name "Path", add ";% JAVA_HOME" at the end of the original variable value % \ bin;% JAVA_HOME% \ jre \ bin "
New- > Variable name" CLASSPATH ", variable value".;% JAVA_HOME% \ lib;% JAVA_HOME% \ lib \ dt.jar;% JAVA_HOME% \ lib \ tools. jar "

 

Confirm the environment configuration

cmd knock

java -version

 

Guess you like

Origin www.cnblogs.com/poloyy/p/12744072.html