Configuring JDK Environment variables under Windows 7

Source: Internet
Author: User

Install the jdk1.8 version (download link: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) specific steps.

Step 1: Download and install the jdk1.8 version, click Jdk-8u101-windows-x64.exe (This version is a Windows 64-bit system), as long as the step by step, until the installation is complete.

Step 2: After the installation, click on the desktop computer, right button properties, click on the left "advanced system Settings", click the advanced environment variable, this is click on the following system environment variable-new (System environment variable)

Setting the Edit System environment variable

Variable name Java_home

Variable Value C:\Program files\java\jdk1.8.0_101 (this value is the specific installation path of the JDK C:\Program files\java\jdk1.8.0_101, the specific physical location of the JDK)

As shown

Step 3:

Similarly, in the system environment variable, set CLASSPATH.

New (System environment variable)

Setting the Edit System environment variable

Variable name CLASSPATH

The value of the variable .; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar;

( note : When setting this value, be sure to note the previous . ) Symbol

As shown

Step 4:

Similarly, in the system environment variable, set path.

Find path, select Edit (System environment variable)

Setting the Edit System environment variable

Variable name PATH

The value of the variable is%java_home%\bin;%java_home%\jre\bin; (note: Just put this sentence directly to the front of the path)

As shown

Through the above steps, the JDK configuration environment has been configured, testing: Click Run cmd pop-up DOS interface, enter JAVAC, the following interface is the success

If the above interface is not present, it may be an issue with the configuration environment, specifically check the semicolon in step 2, and the. or% number.

Configuring JDK Environment variables under Windows 7

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.