Java Environment variables

Source: Internet
Author: User

Tool: Jdk+tomcat

Steps:

1. Install Java JDK: The path name is as free as possible during installation, and the installed display JDK and JRE prove that there is no error during installation.

2. Configure the JDK environment variables:

(1) Right-click My Computer-Properties-Advanced system settings

(2) Advanced system Settings-advanced-environment variables

(3) Create a new java_home variable in the system variable, the value of the variable: C:\Java\jdk1.7.0_80 (according to their actual path)

(4) Create a new CLASSPATH variable in the system variable, the value of the variable:.; %java_home%\lib;%java_home%\lib\tools.jar

(5) Modify the path variable, the value of the variable, add the variable value:%java_home%\bin;%java_home%\jre\bin (note the value of the variable with ";" Separated

3. Check the configuration:

(1) Start-Enter the cmd command in the Run box and java-version to view the Java version in the Command box.

(2) Enter Javac, check the return results, if you can return all the following results indicate that the configuration is successful.

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.