First install JDK (Java Development Kit Development Kit)
: http://www.oracle.com/technetwork/java/javase/downloads/index.html
After the download is finished click Install (Note: The path can not have Chinese, otherwise there will be inexplicable bug, I think we all understand)
Where you want to put it when you install it;
After the installation is complete, we will configure the environment, of course, does not configure the line, put why to configure, because convenient
(Can see: http://www.cnblogs.com/qq1871707128/p/6046893.html)
Then we click New:
Set 3 properties in "User variable", Java_home,path,classpath (case-insensitive), click "Edit" if it is already present, notice that the semicolon is separated from the previous, and click "New" if it does not exist.
The variable setting parameters are as follows:
- Variable name: java_home
- Variable Value: C:\Program files\java\jdk1.8.0_111
- Variable name: Path
- Variable value:%java_home%\bin;%java_home%\jre\bin;
- Variable name: CLASSPATH
- Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; Note: This is preceded by a dot '. '
Of course if you do not know the location of the files you installed can be searched like this:
Open the disk you installed, search for jdk1.8.0_111, then double-click Open, then double-click on the bin, right-down properties, copy the link address can be
When we're done, we'll test it. We configured the environment to have no success, command (Window key) +r, and then enter CMD, OK after the input command: java,javac several commands, The information that appears related to usage is the installation environment is successful!
Java Development Environment Configuration