Java environment variable Configuration

Source: Internet
Author: User

/**   * Crazyandcoder   * Contact:   *      QQ   : 275137657   *      Email: [Email protected]   * Reprint please indicate the source!   

Java environment variable Configuration


First, download the JDK

Website


Ii. Installation of JDK

"Next", the default installation path.


Third, configure environment variables

    • Environment variables, advanced property settings, properties, right-click Computers
 



    • Select "System Variables"




Create the following two system variables:

    1. Variable name: Java_home variable value: C:\Program files\java\jdk1.7.0_11
    2. Variable name: CLASSPATH variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
Edit the PATH environment system variable: Precede the variable with the quote "%JAVA_HOME%\BIN;%JAVA_HOME%\JRE\BIN;", note that the last side needs to add a semicolon ";". Click "OK", at this time the Java environment variable is configured, let us test it, whether the configuration is correct.
iv. Verifying environment Variables"win+r" input cmd, open the DOS command window, enter Javac, Java-version, if the following content is correct.






Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Java environment variable Configuration

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.