How to configure the environment variables of jdk1.7? Jdk1.7 environment variable configuration tutorial

Source: Internet
Author: User
DK environment variable configuration method:
1. Right-click Computer & rarr; properties & rarr; Advanced System Settings & rarr; advanced & rarr; environment variables
2. System variable & rarr; New
Variable name: JAVA_HOME
Variable value: (enter the jdk installation directory for the variable value, for example, E: \ Java \ jdk1.7.0)
3. Find the Path variable in the system variable and select Edit
Enter % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin at the end of the variable value;
(Note: If the original Path variable value does not end  ; Number, enter first; number and then enter the above code)
4. System variable & rarr; New
Variable name: CLASSPATH
Variable value:. % JAVA_HOME % \ lib; % JAVA_HOME % \ lib \ tools. jar (note the first one)
The system variables are configured.
5. Check whether jdk configuration is successful: run cmd and enter java-version (there is a space between java and-version)

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.