JDK download, installation and configuration environment

Download and configuration of JDK8

1. Download

Website: https://www.oracle.com

2. Installation

During installation, there will be two operations to select the installation path, these two times are jdk paths and jre paths. Never put them under a folder!

1. Select the path for the first time (jdk path)

2. Select the path for the second time (jre path)

 Then quietly wait for the installation to complete. . . .

3. Set JDK environment variables
1. Configure environment variables after installing JDK Computer → Properties → Advanced System Settings → Advanced → Environment Variables → System Variables → New JAVA_HOME Variable.
Fill in the variable value in the jdk installation directory (I am C: / Program Files / Java / jdk1.8.0_144)
2. System variable → Find Path variable → Edit
Enter% JAVA_HOME% / bin at the end of the variable value
(note the original Path variable Is there a number at the end of the value; if not, enter it first; enter the code above)
3. System variable → New CLASSPATH variable
variable value is filled in.;% JAVA_HOME% / lib;% JAVA_HOME% / lib / tools.jar; ( Note that there is a dot and a semicolon at the beginning. I do n’t add it.) The
system variables are configured
. 4. Check whether the configuration is successful. Run cmd. Enter java -version (there is a space between java and -version).
If the version information is displayed, it indicates installation and configuration. success

Published 12 original articles · won 9 · 10 thousand views

Guess you like

Origin blog.csdn.net/finaly_yu/article/details/83044612