Windows builds a Java environment
1. Download the Java Development Tools JDK installation package
: http://www.oracle.com/technetwork/java/javase/downloads/index.html
Click to jump to next page
Select the desired version download
Download complete, install yourself next, select the appropriate installation address. We installed here in the E:\Java\jdk1.8.0_131 location,
Here I originally was the java8 version, and now the latest is JAVA9, the demonstration process has not been replaced.
Configuring Java Variables
1. Because most Windows computers are now win10. Here is the basic WIN10 demo, which should be the latest version Win10
Open a file management at any
To find this computer, right click on the button, select Properties to enter
Select "Advanced System Settings"
。
Select "Environment Variables"
Set 3 properties in "System variable", Java_home,path,classpath (case does not matter), if already exist then click "Edit", not exist then click "New".
1. Variable name:java_home
Variable value: (to be configured according to your actual path)
E:\Java\jdk1.8.0_131
2. Variable name:CLASSPATH
Variable Value: (Remember there is a "." in front of it,
3. Variable name:Path
Variable value: (This direct copy is possible)
%java_home%\bin;%java_home%\jre\bin;
Test whether the JDK was installed successfully
Open cmd input
Java-version
Java environment to build windows