Build the Jdk environment and build the jdk Environment

Source: Internet
Author: User

Build the Jdk environment and build the jdk Environment

After installing jdk, you must configure the jdk environment variables before they can be used properly. The following describes how to configure jdk environment variables:

1. Right-click computer → properties → advanced system settings → advanced → Environment Variables

2. System variables → 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 there is no variable value at the end of the original Path, enter the number first, and then enter the above Code)

4. System variables → 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.