JDK installation and environment variable configuration under win10

How to install JDK and configure the environment under win10?

1. Go to the official website to download the latest version of JDK

http://www.oracle.com/technetwork/java/javase/downloads/index.html
insert image description here

2. Install JDK, just like installing other software, just remember the installation path here

3. Environment configuration

In win10, it is "This PC", select "Properties", open the "System" dialog box, and click the "Advanced System Settings" tab. In the "System Properties" dialog box that pops up, select the "Advanced" tab under System Properties. Select the "Environment Variables (N)" button under "Startup and Recovery" to open the "Environment Variables" dialog box.

新建系统变量(一)
变量名:JAVA_HOME
变量值:D:Program FilesJavajdk1.8.0_102

新建系统变量(二)
变量名:CLASSPATH
变量值:.;%JAVA_HOME%libdt.jar;%JAVA_HOME%lib	ools.jar;

系统变量区域找到“Path”变量,并双击打开,点击新建
%JAVA_HOME%\bin
再新建
%JAVA_HOME%jre\bin

4. Confirm and exit.

5. Check the installation, open the cmd interface, and enter

Java -version

If the java version information can be displayed, the configuration is successful.

Guess you like

Origin blog.csdn.net/cuclife/article/details/131323174