WIN7 64-bit system install JDK and configure environment variables

Source: Internet
Author: User
Tags windows x64

1, first, download the JDK installation package, to the official website http://www.oracle.com/technetwork/java/javase/downloads/index.html to download, point to the left of the Java Platform ( JDK) 7u51 go to the next download page

2, point to the left of the Accept License agreement, accepts the license agreement, can download, because I installed the WIN7 64-bit system, so select the corresponding 64-bit installation package

3, Windows x64 corresponding to the jdk-7u51-windows-x64.exe download

4, download the installation, I used to install the software to D, you can change the location according to their own habits

5, after installation is to configure the JDK environment variables, on the desktop computer point right-click Properties, or Start menu computer Right-click Properties, left point advanced system Settings , point below the environment variable

6, in the new pop-up window, click the New button under the system variable area, pop up the new window, the variable named java_home, the variable value to fill the final path of the JDK installation, I installed the address is D:\Program files\ Java\jdk1.7.0_51, so fill D:\Program files\java\jdk1.7.0_51, click OK to finish

7, the following need to set the path variable, because the system itself already exists this variable, so do not need to create a new, in the original to add JDK related, find the path variable double-click Edit, because each value between the use ; Symbol breaks, so add at the end first ; (Note that the English format, do not lose other symbols, such as space), plus ; After the symbol, add %java_home%\bin;%java_home%\jre\binat the end, click OK to finish

8, add the following CLASSPATH variable, because it does not exist, so create a new, variable name CLASSPATH, variable value %java_home%\lib\dt.jar;%java_home%\ Lib\tools.jar, with no spaces, the point is determined to complete, the environment variable configuration is complete, click OK to close the Environment variable configuration window

9, the above step is completed, the following verify whether the configuration is successful, click Start run input cmd Open command Line window, enter java-version, display version 1.7.0_51, input javac- Version, also displays the 1.7.0_51, indicating that the JDK installation and environment variable configuration was successful.

WIN7 64-bit system install JDK and configure 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.