Java Development Environment Configuration (WIN7-64BIT) Java Java Development Environment configuration (WIN7-64BIT)
- Java Development Environment Configuration (WIN7-64BIT)
- 1. Overview
- 2. Tools used in the text
- 3. Environment variable Configuration
- 4. Testing
- 5. 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 the text
Java SE Basic toolkit: official website download
(Many versions, choose the applicable version, omit the installation process, the next step in the installation time)
3. 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 Classpath represents the directories that need to find the class file when running a Java program.
- Path configures the location of the JDK command file.
-
My Computer (right-click) → Properties
-
Advanced system settings → environment variables
-
System variable comes with no java_home this variable, you need to edit the following: (variable value is the path of JDK installation)
-
Path is already present in the system variable, check path→ edit
–> enter the path of the bin (separated by semicolons)
-
The system comes with a variable that is not classpath and needs to be added
→ use "." Represents the current path
→ use ";" Separated
→ Enter the path to BIL (e.g. my path is: C:\Program files\java\jdk1.8.0_60\lib)
Configuration here to the end, remember to press OK, not sure is not to save their own.
4. Testing
Open run Àcmdà input java/javac for verification (the effect of validation is as follows)
If you see this effect, congratulations on your configuration success.
5. Precautions
如果使用1.5以上版本的JDK,不用设置CLASSPATH环境变量,也可以正常编译和运行Java程序。
Java Development Environment Configuration (WIN7-64BIT)