JDK installation and environment variable configuration, jdk environment variable configuration

Source: Internet
Author: User
Tags windows x64

JDK installation and environment variable configuration, jdk environment variable configuration

Tools/Environment

JDK/Win 7X64

Procedure

 1.Download JDK

: Http://www.oracle.com/technetwork/java/javase/downloads/index.html

Download the appropriate installation package based on the operating system, which is windows x64

2. Install JDK

Two installation directory prompts will appear during the installation process. Jdk is installed for the first time, and jre is installed for the second time. We recommend that you install both of them in different folders in the same java folder. (The jdk and jre cannot all be installed in the root directory of the java folder. An error occurs when they are installed in the same folder, because the jdk directory contains a jre. Read this document if you do not understand it ).

As shown in

3. Configure Environment Variables

After JDK is installed, configure the environment variables: Computer → properties → advanced system settings → advanced → environment variables → System Variables

4. Check whether the configuration is successful

Run cmd and enter java-version (there is a space between java and-version)

If the version information is displayed, the installation and configuration are successful.

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.