How to set up Java environment variables (picture and text tutorial) _java

Source: Internet
Author: User

Install the JDK Wizard for related parameter settings. As shown in figure:

Installing the program's related features, as shown in the figure:

Select the path of the installation, either customized or default to the path. As shown in figure:

After the successful installation, the test is really successful installation, click the "Start"----"Run"----input CMD, in the command prompt input "java-version" and press ENTER, the following figure, that is, the installation was successful. As shown in figure:

The following starts with configuring environment variables, right-clicking My Computer---properties-----advanced---environment variables, as shown in the figure:

Select New System variable--eject the new System Variable dialog box, enter "Java_home" in the Variable Name text box, enter the installation path for the JDK in the Variable Value text box (that is, the folder path for step 5), and click OK, as shown in the figure:

In the System Variables option area, view the path variable, or if it does not, create a new path, or select the variable, click the Edit button, and add the%java_home%\bin;%java_home%\jre\bin at the beginning of the Variable Value text box. or direct "%java_home%\bin;", click OK button, as shown in figure:

View the CLASSPATH variable in the System Variables option area, or if it does not, create a new variable classpath, or select the variable, click the Edit button, and add the starting position of the variable value text box.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; ". As shown in figure:

The test environment variable is now configured successfully or not. Enter "JAVAC" in the DOS command Line window, and the output Help information is configured correctly. As shown in figure:

Attention matters

Remember not to miss out on the last ";" Symbol.

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.