Windows7 64-bit, JDK 1.7 environment variable settings

Source: Internet
Author: User
Tags java se

1. Download the JDK installation package.

Http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.html
File name: jdk-7u9-windows-x64

or login http://java.sun.com find software download under the Java SE Big class, download as needed.


2. Double-click Install JDK.

The JDK installation path is default. and write it down. C:\Program files\java\jdk1.7.0_09
Click Next to install JRE, path default.
(C:\Program files\java\jre7)

3. Set Environment variables (total 3 environment variables: java_home, classpath, Path)

Environment variables, advanced system settings, properties, computer, right-button, and so on
·······························································································
Click "New", Variable name: java_home
Variable Value: C:\Program files\java\jdk1.7.0_09
and the JDK installation path is the same, just write down, is used here. After entering, OK.
·····························································································
Then click "New", Variable name:
Classpath

Variable Value:
.; %java_home%\lib\dt.jar;%java_home\lib\tools.jar;

Attention!!! The dot in front of the semicolon., never forget!!
····························································································
The third variable is not new, already has, variable name: Path Press "edit"

Can be found inside the original content, do not delete these content!! Instead, directly in front of the existing content, paste the following code:

.; %java_home%\bin;

Also do not forget the preceding dot semicolon., and the last semicolon;
·························································································

4. Inspection

Start and bottom search box, enter cmd return
Input Java, enter
If there is a large piece of text like how to use Java, it is set up successfully.

Windows7 64-bit, JDK 1.7 environment variable settings

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.