Java Development Environment Build-JDK installation and environment variable configuration

Source: Internet
Author: User

1. Pre-conditions

System: This tutorial takes the WIN7 system as an example

JDK: This tutorial takes jdk-7u79-windows-x64 as an example

2. Installation Steps

Double-click Run JDK Installer

Select Install all: Development tools, source code, public JRE, and select the installation path

Installing in progress

Set the JRE installation directory, where you select the default installation path.

is installing

When the installation is complete, click Close.

3. Environment variable Configuration

Computer--Right-button "Properties"

Select Advanced System Settings

Select Environment variables

In the system variable out select new

Defines the java_home variable, which points to the installation directory of the JDK.

The Supervisor class Path variable Classpath value is Tool.jar and Dt.jar under the JDK installation directory. Be careful not to omit ".", which represents the current path.

Classpath: .; %java_home%\lib\tools.jar; %java_home%\lib\dt.jar

Defines the path variable whose value is the bin under the JDK and the bin under the JRE

Path: %java_home%\bin; %java_home%\jre\bin

4. Test the installation

Enter the java-version and Javac commands in the Command Line window, as shown in the information

At this point, the JDK installation and environment variable configuration is complete.

Java Development Environment Build-JDK installation and environment variable configuration

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.