1, the installation kit JDK
JDK toolkit is the most basic java development tools, many cases javaIDE tools: Eclipse, IntelliJ IDEA, NetBeans and JDK are dependent
1.1, JDK download and install
Oracle opened the official website to download the corresponding address:
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
if your system is windows system then click Windows x64 download, of course, Linux \ mac OS X \ Solaris select Download.
It is recommended that aircraft over the wall, the country will be very slow and very slow, a few k count.
1.2 selection dialog download
1.3, the content of the JDK installation
JRE file is run java file, without a separate download, automatically generated after the installation is complete
2, set the environment variable
2.1, win10 system open path (Control Panel \ All Control Panel Items \ System) into the windows system dialog box, click Advanced System Settings
2.2, click Environment Variables, enter the environment variable settings dialog box, the user variables section, click "New", the system pop-up dialog box, the "variable name" to JAVA_HOME, "variable value" to the JDK installation path, and then add the CLASSPATH variable value is set,% JAVA_HOME% \ lib;% JAVA_HOME% \ lib \ tools.jar
3, the test environment is set up, through the command line javac, java command, then the environment settings can be found success