Java environment variable setting method
Configuring the JDK environment variable under Windows XP: (Windows7 similar)
1, install the JDK, the installation process can customize the installation directory and other information,
For example, we choose the installation directory for D:\java\jdk1.5.0_08;
2, after the installation is complete, right click on "My Computer", click "Properties";
Select the "Advanced" tab and click on "Environment variables";
3. In "System Variables", set 3 properties, Java_home PATH CLASSPATH
Click "Edit" if it exists, click "New" if it does not exist.
Java_home Installation path D:\java\jdk1.5.0_08 (this path includes folders such as LIB,BIN,JRE)
Path allows the system to identify Java commands under any path
Set to:%java_home%\bin;%java_home%\jre\bin
CLASSPATH is the Java load class or lib path, only the class is in CLASSPATH, and the Java command can
Identify, set as:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar
4, "Start"->; " Run ", type" cmd ", type the command" Java-version "," Java "," Javac "a few commands, appear screen, indicating that the environment variable configuration is successful;
Java environment variable setting method