About the configuration of Java JDK environment variables

Source: Internet
Author: User
recently learning Java, about the configuration of Java environment variables, I would like to summarize their experience in this area, for your reference: Right-click My Computer---> Properties---> Advanced property settings---> Find environment variable Configuration under Advanced tab button to open the environment variable,1. Create a new environment variable value name java_home the corresponding value is the path to your JDK installation, such as the path of my JDK installation: D:\SoftFile\Java that way java_home: D:\SoftFile\Java2. Create a new variable, name it CLASSPATH, and its value is set to.; %java_home%lib;%java_home%lib\tools.jar;%java_home%lib\dt.jar  Note: There is a ".;" in front of the value. Number, this cannot be omitted, otherwise it cannot be configured successfully 3. The last step, set the value of the Path variable, and add this%java_home%\bin;%java_home%\jre\bin after the original paht value, to refer to the Java_ that you just configured The value of the home variable these are configured, open the Command window, enter the command java-version or Java, if the configuration is successful, will display such information
Or: The version number of the current JDK is displayed
Okay, OK.

About the configuration of Java JDK environment variables

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.