JDK installation and configuration, JDK installation Configuration
1. What is JDK (Java Development Kit)
Development tools, javac and basic core classes
Runtime Environment, java and basic core classes
2. Current Java platform version
JavaSE (Java Platform Stand Edition)
JavaME (Java Platform Micro Edition)
JavaEE (Java Platform Enterprise Edition)
For general users and learning purposes, Java SE is usually used. Currently, the latest JDK version is JDK 7.
3. Download and install JDK
JDKhttp: // www.oracle.com/technetwork/java/index.html
Different Operating System Platforms, download different versions, such as: Windows environment download to get an executable file: jdk-7-windows-i586.exe.
After the installation is complete, the following sub-directories are created in the installation directory:
Bin: a tool for developing, executing, and debugging Java programs.
Include: stores the header files required for local code programming.
Jre: directory of the Java Runtime Environment used by JDK. Including the support files required for Java virtual machines, class libraries, and other running programs.
Lib: stores the additional class libraries and support files required by the development tool. There is also an src.zip file under the installation directory, which stores the source files of the core APIs of the Java platform.
4. Set Environment Variables
After the JDK installation is complete, you must configure the relevant environment variables for use. Set the PATH variable Windows2003/XP system my computer --> properties --> advanced --> environment variable --> system variable.
A. Create JAVA_HOME
C: \ Program Files \ Java \ jdk1.7.0 _ 51 (JDK installation path)
B. Create a PATH
% JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin
C. Create a CLASSPATH
.; % JAVA_HOME % \ lib \ tools. jar