You have configured OK and successfully debugged your first JavaProgramHowever, the development environment is lost because of unexpected damage to the computer's hard disk. during the New Year's free time, you can re-create your own Java development environment and record it, so as not to forget it for a long time, however, the entire process is relatively easy.
1.
First download and install JDK. Note that it is a 64-bit win7 version. 2. Set environment variables:
Computer> Properties> advanced system Settings> advanced> environment variables> System Variables
Find the variable name "path" (new if no one exists), click Edit, and add the "bin" folder path C in the JDK installation directory: \ Program Files \ Java \ jdk1.7.0 \ bin (this is the installation path of my JDK. Note that the semicolon should be used to separate it from other environment variables );
Find the variable name "classpath" (new if no one is available), click Edit, and add the "lib" folder path C in the JDK installation directory: \ Program Files \ Java \ jdk1.7.0 \ Lib (this is the installation path of my JDK. Note that the semicolon should be used to separate it from other environment variables );
3. Check whether the test is successful:
Go to cmd (command prompt), enter Java-version, and view the JDK version;
Enter cmd (command prompt), enter javac, and view the JDK installation information;
3. the Java environment variable is successfully configured.
Author: Nicolas Xia
Reprinted please indicate the source: http://blog.csdn.net/nicholasxia/article/details/7309821