JAVA environment variable configuration

1, install JAVA JDK

下载Java JDK:https://www.oracle.com/technetwork/java/javase

1, SE Select the Java
Here Insert Picture Description
  2, select Java SE 8, Java 8 JDK versions later abandoned in the JRE files need to be downloaded separately, if needed later to note here
Here Insert Picture Description
3, here for Windows, for example, choose to download .exe program file, the download is complete run directly (fool installation)
Here Insert Picture Description

2, configure JAVA environment variables

1, after installing JDK open system properties, find the environment variable

2, variable configuration system

1, the new
variable name: JAVA_HOME
variable value: C: \ Program Files \ Java \ jdk1.8.0_201 ( JDK installation)

2, the new
variable name: CLASSPATH
variable values:;.% JAVA_HOME% \ lib;% JAVA_HOME% \ lib \ dt.jar;% JAVA_HOME% \ lib \ tools.jar
3, edit
the variable name: Path
variable value:;% JAVA_HOME (after configuration is added to the Path)% JAVA_HOME% \ jre \ bin ;% \ bin

Guess you like

Origin blog.csdn.net/sinat_41632924/article/details/91492811