Java environment variable Configuration

Source: Internet
Author: User

I novice + rookie one, if there is inaccurate or wrong place want you to point out, this is my first blog, may be very simple, but hope to help the novice, but also hope that the platform with the common progress and growth.

Every Java beginner needs to download and install the JDK (Java SDK) before development, configuring environment variables, which is the basis, which is the premise, which ensures that we can carry out the next learning development.

As for why to configure environment variables, it is simple to tell the operating system compiler to run the path and the generated classpath, so that the Java source program can be compiled and run. Maybe I said inaccurate unreasonable, we can go to Baidu, this is nothing.

may be easy for beginners to forget how to configure, below I will briefly illustrate:

(1) Find the computer system Properties "Environment variable" system variable new A variable named java_home system variable, the value of the variable is filled with your computer JDK installation path

(2) Create a new environment variable named CLASSPATH .

The value of the variable is filled in: .; %java_home%\lib;%java_home%\lib\tools.jar

(3) Locate the environment variable path,

Precede the value of its variable with: %java_home%\bin;%java_home%\jre\bin;

(4) Open the running Panel (shortcut key win R), open after the input cmd into the command window, the input Java and Javac have the corresponding content appears, indicating that the configuration is successful.

  

Java environment variable Configuration

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.