Java Development Environment Configuration

Source: Internet
Author: User
Tags java se

Java Development Environment Configuration (WIN7_64BIT)

    Directory

1. Overview

2. Tools used in this article

3. Installation

4. environment variable configuration

5. test Procedures

6. Precautions

1. Overview

Building a Java development environment typically requires installing both the JDK and the JRE.

JDK: Java SDK Java Development Kit, required to develop Java programs, contains a subset of the public JRE in the JDK.

JRE: A Java runtime Java Runtime Environment, used when running a Java program that has been developed.

2. Tools used in this article

Java SE Basic Toolkit: official website Download

3. Installation

It is recommended that you configure a separate folder for the installation, such as

To download the JDK, see step 2 ...

  Installation is simple, note that the JDK first appeared, followed by the JRE ...

4. Environment variable Configuration

The JAVA environment variable involves three nouns: java_home, path, classpath.

Java_home represents the JDK installation home directory, and path represents the directory of executable files under the JDK, and Claspath represents the directories that need to find the class file when running a Java program.

Depending on the installation steps above:

    Java_home should be set to: D:\DevelopTools\JAVA\JDK

    path should be set to:%java_home%\bin; %java_home%\jre\bin; ( note the semicolon )

Claspath should be set to:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar ( Note that the front-most point represents the current path, which is not set after JDK1.5 )

Here's how it's set up:

5. Test Procedures

5.0 Write a Java program under the specified directory:

5.1 Start the Command line window to run:

5.2 It is cumbersome to switch directories each time, and one solution is to add the directory that holds the code to the environment variable, but if the code directory is changed and set.

My recommended approach is to put the command window file directly into the directory with the code, which is much more convenient.

6. Precautions

6.1 The JDK versions shown in this article are as follows:

6.2 If you write Java using an integrated development environment, environment variables are generally not explicitly set, and the IDE will do it for us.


Back to Catalog

Java Development Environment Configuration

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.