JAVA environment configuration step is recorded in the WIN10

1. Download java development kit the JDK, https://www.oracle.com/technetwork/java/javase/downloads/index.html into the home,

 

Click to download page:

 

click to download:

 

After the download is complete install (if you need to easily install JAVA development JRE) can be.

2. Configure Environment Variables

1) Right-click "My Computer" and click "Properties", select "Advanced System Settings";

2) Select the "Advanced" tab, click on the "Environment Variables";

3) Set 3 system variable properties, JAVA_HOME, PATH, CLASSPATH (capitalization does not matter), If there is already then click the "Edit" does not exist, click "New."

Variable name: JAVA_HOME

Variable value: C: \ Program Files (x86) \ Java \ jdk1.8.0_91 // to be configured according to their actual path jdk

Variable name: CLASSPATH

Variable values:;.% JAVA_HOME% \ lib \ dt.jar;% JAVA_HOME% \ lib \ tools.jar; // in front of a recall. ""

Variable name: Path

Variable value:% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin; // WIN10 join the two variable values ​​in the list.

3. Test JDK is installed successfully

1) "Start" -> "Run", type "cmd";

2) Type the command: java -version, java, javac few commands, a message appears, indicating successful configuration environment variable;

4. Eclipse (recommended): Another free open source java IDE, Download: https://www.eclipse.org/downloads/packages/ , select the Eclipse IDE for Java Developers.

Guess you like

Origin www.cnblogs.com/caoer/p/11785510.html