Build up Java Environment

Source: Internet
Author: User

1, configuring Environment variables

My Computer, right-click on the computer icon, tap "Properties"

Click "Advanced System Settings"

Click on "Environment variables"

"System Variables" column, click "New"

Popup input "variable name", "Variable Value" window

"Variable name" input "Java_home"

"Variable value" input "D:\Program files\java\jdk1.6.0"

Click "OK"

Then find the variable named "Path" in the "System Variables" column

Click "Edit"

will be "%java_home%\bin;" To the end of its "variable value", note that if the end is not ";" Symbols must be added with

Click "OK"

Then click "New" in the "System Variables" column.

"Variable name" enter "Classpath", "Variable Value" input ".; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar ", note the preceding".; " Symbols must not be omitted

Click "OK"

Then click "OK" in the "System Properties" window.

Test whether the configuration was successful

Press Windows window key to add "R" key, open "Run" window, enter "CMD" to open DOS window

Enter the command "Javac" and return to confirm

A long list of messages pops up to indicate that the configuration is complete, or the system prompts the error message


1 environment variable configuration steps

Build up Java Environment

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.