java development environment (win10)

window10 install java

Download JDK

In the official website to download JDK or Baidu network disk

JDK8D installation package:

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

Extraction code: 3rl6

JDK installation according to prompts to download, install JDK when there will install the JRE, install it together.

Installation JDK, installation can customize the installation directory and other information, select the installation directory is D: \ Program Files \ Java

\ Jdk1.8.0_202

Configuration environment variable

In the search box enter: path

 

 

Open the "Edit System environment variables", select "Advanced" tab, click on the "Environment Variables"

 

 

 

The following window appears

 

 


 

1. Create a new JAVA_HOME

Click on "New"

Variable name: JAVA_HOME

Variable value: D: \ Program Files \ Java \ jdk1.8.0_202

 


 

 

(Variable values: you can find the directory you installed jdk, and then copy the path in the address bar)

2.PATH settings

Found select "path", click Edit,

Click on "New", add the following two respectively

%JAVA_HOME%\bin

%JAVA_HOME%\jre\bin

 

 

3. Set the CLASSPATH

Select the "classpath", if it does not find a new

Variable name: CLASSPATH

Variable values:;.% JAVA_HOME% \ lib \ dt.jar;% JAVA_HOME% \ lib \ tools.jar;

 

 

 

 

Test whether the installation is successful

cmd, enter: java -version

 

 

If the content that appears on the map represents a successful installation

Guess you like

Origin www.cnblogs.com/tlidx/p/11220618.html