Java JDK environment variable configuration

Source: Internet
Author: User

1: Environment

  • JDK1.7.0
  • WIN7

2: Install JDK Two installation prompts appear during installation of the installation directory. The first time is to install the JDK, and the second is to install the JRE. It is recommended that all two are installed in a different folder in the same Java folder. (cannot be installed in the Java folder root directory, JDK and JRE installed in the same folder will be error)

3: After installing the JDK (D:\Program files\java\jdk1.7.0_80), configure environment variables computer → properties → advanced system settings → advanced → environment variables

4: Environment variables

  • System variables → new java_home variable. Variable value fill in the JDK installation directory D:\Program files\java\jdk1.7.0_80
  • system variable → find path variable → edit, enter%java_home%\bin;%java_home%\jre\bin at the end of the variable value; (Note that the value of the variable in the original Path is not at the end; number, if not, first enter; number and then enter the above code)
  • system variable → new CLASSPATH variable, variable value filled in.; %java_home%\lib;%java_home%\lib\tools.jar (note the first point) system variable configuration complete

5: Detection

Run the cmd input java-version

Java JDK environment variable configuration

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.