Java environment variable settings

Source: Internet
Author: User

Java environment variable settings

1. Install the JDK, fool installation,: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

2. Open cmd, enter java-version to view installed JDK version

3. Configure Java Environment variables

3.1. Right-click Computer-----> Properties-----> Advanced System settings------> Environment Variables------> System environment variables, click New, variable name: java_home, Variable Value: installation path (e.g. D:\Program files\java\jdk1.8.0_131 http://7881188.cn/);

Click OK!

3.2. Set the path path, in the system environment variable, locate path, double-click on its last input:;%java_home%\bin;%java_home%\jre\bin; (notice with semicolons; separate);

3.3 Set the Class_path path, in the system environment variable, click New, variable name: Class_path, Variable value:.; %java_home%\lib;%java_home%\lib\tools.jar (note the front is.; );

4. Open the cmd input javac, which appears as:

Configuration Complete!

Java environment variable settings

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.