How Java environment variables are configured _java

Source: Internet
Author: User

Configuration of the Java environment

The configuration of the Java environment should have been learned, here a simple talk.

Download the installation Java JDK, note the installation path, we need to carry out the configuration of environment variables.

After the installation is complete, configure the environment variables

Configuration of environment variables Here's an example of Win7: Right-click the computer--Properties--Advanced system settings.

Click on the environment variable below, enter the system variable in the column click New, and then enter the following:

Name: Java_home

Variable Value: The path that was just installed

Click New in the above column to read as follows:

Name: Class_path

variable value: .; %java_home%\lib;%java_home%\lib\tools.jar

Be sure to note that all symbols are in the English state.

In the system environment variable, there is a PATH environment variable, select Edit after selection, add Java_home can be, as shown: at the end add;%java_home%\bin;

Test whether the Java environment is configured successfully

Press the Win+r key and enter CMD to pull up the Command control window. Enter: Java-version to see if the version can be displayed.

The above is the entire content of this article, I hope to help you learn, but also hope that we support the cloud habitat community.

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.