Teach you to set up Java environment variables

Source: Internet
Author: User

After the JDK is installed successfully, the test is really installed successfully, enter "Java-version" at the command prompt and press ENTER, if the following version information appears:

Java Version "1.6.0_26"

Java (TM) SE Runtime Environment (build 1.6.0_26-b03)

Java HotSpot (TM) Client VM (build 20.1-b02, mixed mode, sharing)

Indicates that the JDK has been successfully installed.

Here's how to set up Java environment variables

1. Turn on my Computer--Properties--advanced--environment variables

2. New System variables Java_home and Classpath

Variable name: java_home

Variable Value: C:Program FilesJavajdk1.7.0

Variable name: CLASSPATH

Variable value:.; %java_home%libdt.jar;%java_home%libtools.jar;

3. Select the environment variable named "path" in the system variable, double-click the variable, add the absolute path of the bin directory in the JDK installation path to the value of the path variable, and use the semicolon and the existing path to separate

Variable name: Path

Variable value:%java_home%bin;%java_home%jrebin;

Finally, the configuration of the test environment variable is successful, you can enter "Javac" in the Command Line window, carriage return, output Help information is configured correctly.

Related Article

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.