Current location - Health Preservation Learning Network - Healthy weight loss - How to configure Java environment variables in WinXP system? Graphic course
How to configure Java environment variables in WinXP system? Graphic course
If our XP system computer wants to use Java, it needs to configure Java environment variables. But many computer novices say that they are not very clear about how to configure Java environment variables. Next, Bian Xiao will introduce the configuration method of Java environment variables in WinXP system computers in detail.

System recommendation: xp system of computer company

Configuration method:

1. Right click "My Computer" and click "Properties";

2. Select the Advanced tab, and then click Environment Variables;

3. In the System Variable, set three properties, JAVA_HOME, PATH and CLASSPATH (case-insensitive). If it exists, click "Edit"; if it does not exist, click "New";

4.JAVA_HOME indicates the installation path of JDK, that is, the path D: \ JDK 1.7 selected just now. This path includes folders such as lib, bin and jre (this variable is best set, because you need to run tomcat and eclipse in the future), so create a new JAVA_HOME with the variable value set to: D: \ JDK65438+.

5.Path enables the system to identify java commands in any path and add the following words to the variable value; % JAVA _ HOME % \ bin%JAVA_HOME%\jre\bin

If not, please create a new path.

The variable value is set to:

% JAVA _ HOME % \ bin% JAVA _ HOME % \ jre \ bin

6.CLASSPATH is the path of java loading class (classorlib). Only when the class is in the classpath can the java command recognize it.

So create a new classpath.

The variable value is set to:

. ; % java _ home% \ lib% java _ home% \ lib \ tools.jar (to be added. Represents the current path)

%JAVA_HOME% refers to the specified java _ home;

7. Configuration is complete

This is how Winxp configures Java environment variables. As long as we install Java on XP computer, we need to configure it.