Java SDK download, installation, and environment variable settings under Windows 7

Source: Internet
Author: User
Tags windows x64 windows x86

First step: Download Java JDK
  1. 1

    Login Official website Download Genuine JDK

  2. 2

    Click on "SDK Download" to access Java JDK download page

    indicate: Java JDK and Java JRE differences

    The Java JDK is Java development Kit. Simply put, the JDK is a developer-oriented SDK that provides a Java development environment and a running environment. Java Runtime enviroment refers to the Java Runtime Environment, which is intended for users of Java programs, not developers.

  3. 3

    Choose the Java JDK version that's right for you (choose Java JDK8 here) and click on the download page

    indicate: Java JDK is not a version of the higher the better, according to their own situation, such as computer configuration, if not understand, you can see the "JDK DOWNLOAD" button to the left of the "installation Instructions" description of the document "System Requirements "section.

  4. 4

    Download Java JDK


    1. Click "Accept License Agreement" to agree to the license

    2. Choose whether to download "Windows x86"-for Windows 32-bit machines or "Windows x64"-for Windows 64-bit machines depending on your computer's situation

    3. Click the download link on the left to download

Installing the Java JDK
    1. 1

      Double-click Java JDK installation package "jdk-8u25-windows-x64"

    2. 2

      Click on the "Next" button

    3. 3

      After selecting the features you want to install, click on the "Next" button

    4. 4

      Wait for installation to finish

    5. 5

      End of installation

    6. 6

      Verify that the installation is successful


      1. Open command line tool (CMD)

      2. Run the command "Java-version"

      3. The command line returns Java version information for installation success

Step Three: Configure Java environment variables
  1. Open the Windows Environment Variables window


    1. Right-click on "My Computer" to "Properties"

    2. Click "Advanced property Settings"

    3. Click on "Environment variables"

    4. Open the Environment Variable Settings window

  2. new system environment variable "Java_home"

    Set the Java_home value to the JDK installation directory, such as: C:\Program files\java\jdk1.8.0_25

    Java_home:c:\program files\java\jdk1.8.0_25

  3. New system environment variable Classpath

    Set the Classpath value to:./;%java_home%/lib/tools.jar;%java_home%/lib/dt.jar

    Classpath:./;%java_home%/lib/tools.jar;%java_home%/lib/dt.jar(note: The dot number indicates the current directory, cannot be omitted)

  4. Update system environment variable path

    Will " ;%java_home%/bin; " (Note: The semicolon here cannot be omitted) and is added to the front of the path. Then click Save

  5. 5

    If you open eclipse error, please restart your computer, you can open it normally

    Setup is complete and start enjoying the Java programming fun!

    Enjoy your Java coding!

Java SDK download, installation, and environment variable settings 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: 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.