Configuring Java Environment variables

Source: Internet
Author: User
Tags java se

Configuring Java Environment variables

The most basic configuration, not to speak, go straight to the beginning

Basic Flow:

(1) Download the Java JDK (Java SE Development Kit), which can be downloaded directly from the website.

(2) Configuring environment variables: java_home, Path,classpath

(3) Verify the configuration is successful

One. Download JDK

Download on the official website not much to say, direct:

Two. Configure Environment variables

(1) Where to find the configuration

My Computer, right-click Properties--Advanced system settings--environment variables--System variables

(2) configuration

It is recommended to use system variables. If the system has this variable name, click Edit, No, click New.

1) java_home

Is your JDK storage address.

      

      

2) Path

In the front, write these two sentences.

    

3) CLASSPATH

Note: The most forward to be enclosed in parentheses (,; ) This

Then after 2 clicks to confirm, even if the basic configuration is OK.

Three. Verification

Open command line interface (CMD), input: Java and Javac, if the effect of Figure 3-1, 3-2, then the configuration is successful. Congratulations to you!

  

                             Figure 3-1

  

Figure 3-2

  

If prompted:Javac is not a command that can be run, it means that there is an error in your three path, and you need to check it again. Note: I am currently using the WIN10, while the WIN10 in the environment variable configuration has a place different from the previous. If there are multiple paths under a variable, the path is displayed in this way () without expanding the look:

After opening:

It may seem clearer, but it's easy to create a detail error--There's no way to confirm that the end of the statement has a semicolon (;). Click "Edit Text" to see

There is a semicolon at the end. In the environment variable configuration, in the case of multiple paths, is a semicolon as a separator number, but the last statement does not need a semicolon also can not have, if more of this semicolon, will lead to the configuration process, there are some unnecessary trouble!! (Blood lessons, be sure to note)

Configuring Java Environment variables

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.