Getting Started with Java-Configuring environment variables

Source: Internet
Author: User

1. Installing the JDK

2. Configure Environment variables

1) After installing the JDK, assume that the path to the JDK is "d:\java\jdk1.7". The configuration process is as follows

2) "My Computer" right button "Properties" > Advanced system Variables > environment variables, such as

3) Create a new system variable named "Java_home" with the variable value "D:\java\jdk1.7"

4) Create a new system variable named "CLASSPATH" with the variable value ".; %java_home%\lib;%java_home%\lib\tools.jar "

5) Modify the original "Path", move the cursor to the front of the variable (do not delete the original variable), add "%jaca_home\bin%", end with a semicolon.

6) can be found either in the command operator input Java or javac.

7) The command operator enters "java-version" and displays "Java version 1.7.x.xx" to indicate that the installation was successful.

 

Getting Started with Java-Configuring environment variables

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.