This is very simple for a lot of people, but write it, hoping to help those who still need it,
Remember when I first configured the JDK for a long time, and now every time I need to reconfigure the JDK to see the appropriate article to recall, so as to complete
The JDK configuration is becoming more and more familiar.
For the JDK download, Java Beginners may be puzzled, after all these years Java is constantly in the development of
According to some textbooks based on JDK1.5-style textbooks and even JDK1.6, no downloads can be found.
In the Java website for a long time to find only JDK1.7 version, in fact, JDK1.7 is completely no problem, backward-compatible with all JDK
As for the official website recommended JDK1.8 do not download, the author once in an XP system under a JDK1.8, found that simply can not use ...
One, the JDK download
1, first open the JDK's official website (click to open the link), find the JDK in the Java SE 7u71/72, select download
2, and then the following figure, select Accept License agreement, then according to their operating system version to select the corresponding JDK download
3, take windows as an example, download to get a running EXE file, directly click to run
Second, the JDK download
1, click Next, if your download JDK has been updated, it does not matter, similar
2, "Install to" the section can change the installation of JDK path, to verify that the "Development tools", "Source code", "Public JRE" three parts of the installation path has changed, this is not like MySQL, change the bottom one can be changed all
3, click Next to automatically complete the installation of JDK, and then install JRE, here if your previous JDK changes, it is best to change the JRE here to the same root as the JDK, such as my JDK is installed to D:\JAVA\JDK, your JRE is also best installed to the D:\JAVA\JRE , so as to facilitate the management of your files
4, click Next to both complete the installation of the JDK
Iii. Deployment of JDK
1, right click "Computer"-> "Properties", then select "Advanced System Settings" Advanced tab, then select "Environment Variables", XP system is "My Computer"-> "Properties", you can select the Advanced tab, then select "Environment variables"
Above is the screenshot of WIN7 system, below is the screenshot of XP system
2, in the "Environment variable" select "New (W) ..."
3, then in the pop-up window to create a new three system variables:
Java_home
E:\Program files\java\jdk1.7.0_71 (This is your own just when installing the JDK installation path selected)
CLASSPATH
.; %java_home%\lib;%java_home%\lib\tools.jar;
Path
%java_home%\bin;%java_home%\jre\bin (if your JRE chooses a different path, the first semicolon should be ...). \jre\bin's Path)
For example, the following image is a new CLASSPATH environment variable, click OK, and then create another
4, after the finished, click on each interface "OK", then open the command prompt, or in the Run window, enter "CMD", open the DOS interface, in which Java and javac can output a stack of debugging information to prove that your machine already has a Java operating environment, the JDK download, Installation and deployment are formally completed.
The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.