Configuring Java environment variables under Win7

Source: Internet
Author: User

Install jdk,jdk-6u10-rc2-bin-b32-windows-i586-p-12_sep_2008 First

Locate the installation directory, and note the D:\Program Files (x86) \java\jdk1.6.0. Depending on the individual installation situation.

1. Go to the "Properties" option of "Computer" and select "Advanced system Settings" as shown in:

2. Select "Environment variables":

3. Click "New":

4, add "Java_home", value is the JDK installation directory.

5, the new "Class_path", the value is:.; %java_home%\bin;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar

Attention:

1), in front of the ".;" Don't forget.

2),%java_home%\bin; This directory is best to add, depending on the personal machine, I did not add the first, run Java is not configured to succeed, so added (perhaps the individual machine is more magical it does not need to add. Most of the internet did not add this).

6. Modify the "path" environment variable and add ";%java_home%\bin;%java_home%\jre\bin" after it. or add "%java_home%\bin;%java_home%\jre\bin;" in front. The difference between a semicolon:

7. Save, Fix, check. Run---->cmd------>javac and Javac-version

1), Input: "Java", you should see the following things:

2), enter "Javac", you should see the following things:

3), enter "Java-version", you should see the following things:

If the above three pictures are seen, congratulations, the environment variable configuration is OK!

Configuring Java environment variables under Win7

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.