Build a java environment and a java
Operating System: Win10
Java version: 1.8.0 _ 102
1. Download and install java JDK (jre is placed in the same-level directory during installation)
Address: F: \ Program Files \ Java directory
2. Configure Environment Variables
This computer-> right-click "properties"-> advanced system settings-> Environment Variables
(1) Create in system variables: variable name: JAVA_HOME variable value: F: \ Program Files \ Java \ jdk1.8.0 _ 102
(2) create a new variable in the system variable: variable name CLASSPATH variable value; % JAVA_HOME % \ lib \ dt. jar; % JAVA_HOME % \ lib \ tools. jar;
(3) select Path in the system variable to edit-> Add the edit text at the end; % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin;
(4) WIN key + R
Enter cmd and press Enter.
Enter javac and press Enter.
OK configuration complete