Configuring Java Environment variables

Source: Internet
Author: User

1, install the JDK package.

2, after the installation is complete, "Start"-"Run" input "cmd", "java-version", if the correct output, indicating that the installation was successful.

3. Right button "My Computer"-"Properties"-"advanced"-"environment variable".

4, user variable new java_home, "Variable Value" section to fill the JDK installation path, such as: C:\Program files\java\jdk1.8.0_65.

5, System variables, new path, variable value "%java_home%\bin;%java_home%\jre\bin;" Or a direct "%java_home%\bin;"

(If Java is available when the configuration is complete, but Javac is unavailable, modify the value here to "C:\Program Files\java\jdk1.8.0_65\bin")

6, System variables, new pathclass, Variable value ".; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar, "There is not a sign here.

7, after the configuration is complete, enter "Java" at the command prompt, typing a large column of text, stating that there is no problem.

8, similarly, input "Javac", play a large string of Chinese characters, explain on it can be.

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.