Java environment variable settings, java environment variables

Source: Internet
Author: User

Java environment variable settings, java environment variables

Java environment variable settings

1. Install jdk, silly installation, http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

2. Open cmd and enter java-version to view the installed jdk version.

3. Configure java environment variables

3. 1. right-click computer -----> properties -----> advanced system settings ------> environment variable ------> system environment variable, click New, variable name: JAVA_HOME, variable value: installation path (such as: D: \ Program Files \ Java \ jdk1.8.0 _ 131 );

Click OK!

3. 2. set the path. In the system environment variable, find the path and double-click it and enter; % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin; At the end. (Note that the semicolon is used before and after; separated );

3.3 set the CLASS_PATH path. In the system environment variable, click New. The variable name is CLASS_PATH, and the variable value is :.; % JAVA_HOME % \ lib; % JAVA_HOME % \ lib \ tools. jar (note that the front is .;);

4. Open cmd and input javac, as shown in:

Configuration complete!

 

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.