Correctly establishing a Java Development Environment under 64-bit win7

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.