Jdk environment variable configuration, jdk environment variable
For java Development, you must first install jdk. After jdk is installed, you must configure environment variables:
1. Download jdk (http://java.sun.com/javase/downloads/index.jsp), the version I downloaded is: jdk-6u14-windows-i586.exe
2. Install jdk-6u14-windows-i586.exe
3. Configure environment variables: Right-click "my computer" --> "advanced" --> "environment variables"
1) create a JAVA_HOME variable in the system variable. The variable value is C: \ Program Files \ Java \ jdk1.6.0 _ 14 (set it according to your installation path)
2) create a classpath variable with the variable value:.; % JAVA_HOME % \ lib \ tools. jar
3) Add the variable value % JAVA_HOME % \ bin; % JAVA_HOME % \ jre \ bin in the path variable (no need to create a new variable) (note that the variable values are separated)
4. "Start" --> "run" --> Enter "javac" --> "Enter". If the command is printed properly, the configuration is successful!
Analysis of supplemental environment variables:
JAVA_HOME: jdk installation path
Classpath: the class path loaded by java. Only the java commands of the class in classpath can be identified. A "." is added before the path to indicate the current path.
Path: The system can recognize java and javac commands in any path.