First, install the JDK
1. JVM (Java virtual Machine-java vm)
JRE (Java runtime Environment-java Runtime Environment)
JDK (Java Development Kit-java Development Kit)
2. The JDK contains the JRE and JVM, so installing the JDK installs the JRE and JVM,JDK installation packages to the Oracle official Web site or to a third-party website for download, which is provided by the official:
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
(Many versions, choose the applicable version, omit the installation process, the next step in the installation time)
650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/799243/201509/799243-20150902125757028-1532912702.png "/>
Second, configure environment variables
Java_home Configuring the JDK installation path
PATH to configure the location of the JDK command file
CLASSPATH Configuring the location of a class library file
1. My Computer (right-click)-Properties
650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/799243/201509/799243-20150902125958841-908850214.png "/>
2. Advanced system settings-environment variables
650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/799243/201509/799243-20150902130139528-1776680491.png "/>
650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/799243/201509/799243-20150902130148263-18632328.png "/>
3, the system variable comes with no java_home this variable, need to edit the following:
(The variable value is the path to the JDK installation)
650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/799243/201509/799243-20150902130249435-1955199759.png "/>
4, path in the system variable is already exist, check path--> edit
650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/799243/201509/799243-20150902130359653-1255193145.png "/>
--First enter the path of the bin (separate the other paths with semicolons)
650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/799243/201509/799243-20150902130723950-1059261049.png "/>
5, the system comes with the variable is no classpath, need to add
650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/799243/201509/799243-20150902130812528-1831350331.png "/>
--with "." Represents the current path
--with ";" Separated
--Enter the path to BIL (e.g. my path is: C:\Program files\java\jdk1.8.0_60\lib)
650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/799243/201509/799243-20150902130948888-245553366.png "/>
Configuration here to the end, remember to press OK, not sure is not to save their own.
Third, verify the configuration environment variables
Open run Àcmdà input java/javac for verification (the effect of validation is as follows)
650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/799243/201509/799243-20150902131200263-132890286.png "/>
650) this.width=650; "src=" Http://images2015.cnblogs.com/blog/799243/201509/799243-20150902131212294-1903658304.png "/>
If you see this effect, congratulations on your configuration success.
Java Development Environment Building