Configuration of JDK environment variables (for beginners in Java)

Source: Internet
Author: User

One. Right click on desktop computer (win7) (My Computer)

Two. Select the properties that appear below the interface

Three. Select Advanced System Settings

Four. Select Environment variables

Five. Create a new system variable Key:java_home,value:java path such as: D:\Program files\java\jdk1.6.0_31, OK

Six. Create a new system variable Class_path. Key:class_path with a value of.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar, notice that there is a.;( Dot semicolon)

Seven. You can also configure the path (do not need to create new, just add a semicolon to continue adding the path);%java_home%\bin;

Eight. Run the CMD input Java carriage return and Javac return to the normal configuration

Nine. Just follow the previous 8 steps to configure it.

Configuration of JDK environment variables (for beginners in Java)

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.