The Java Configuration environment variable

Source: Internet
Author: User

The use of Java software requires changing the configuration environment variables. Takes 2 steps.

First, find the location of the configuration environment variable in your computer:

My Computer, properties, advanced, environment variables.

Second, add two variables and change a variable:

1, variable name: java_home

Variable value: Where Java files are located

2, variable name: CLASSPATH

Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

3. Change the variable contents of path.

Variable name: Path

Variable value:%java_home%\bin;%java_home%\jre\bin is added before the value of its original variable; The original variable value is too long, you can press the home key to find the value of the front of the variable.

When you are ready, you can open the console and output Java to test if it is operational.

The Java Configuration environment variable

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.