Steps for setting jdk Environment Variables

Source: Internet
Author: User

Steps for setting jdk Environment Variables

Steps:

1. After jdk is installed, right-click "computer" on the desktop of your computer ";

2. Select "attributes ";

3. Click "Advanced System settings" in the options on the left to go to system properties;

4. Select the "advanced" button and click "environment variables ";

5. There are three options under the system variable (S). Click "new ";

6. variable name (N): JAVA_HOME

Variable value (V) jdk installation address. For example, my jdk installation address is C: \ Program Files \ Java \ jdk1.7.0 _ 79.

7. Continue to create: variable name (N): classpath

Variable value (V): % JAVA_HOME % \ lib;

8. Find the variable path in the system variable, click it, and edit it. Remember, before the variable is worth it

Add % JAVA_HOME % \ bin;. Remember to separate.

Follow the preceding steps to ensure the setting is successful.

Verify that jdk environment variables are set:

1: win + R

2: Enter cmd

3: Enter java and a series of English letters will pop up. This step is correct for installation.

4: continue to enter javac, and a series of English letters will pop up. This indicates that the environment variables have been set successfully.

If not, please strictly check whether you follow my steps.

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.