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