Winxp system set java environment variables detailed tutorial

  

We all know that if you want to edit the program of java, you must first set the environment variable on the computer, so that you can run the java program. Let's take a look at how the xp system computer sets the java variable.

1. Before setting the environment variable, we must first install java. First, find the path where you installed java. It is useful when setting environment variables. It can be copied first and is easy to use.

2, after remembering the path, go back to the desktop, find ‘My Computer & rsquo; Right click on my computer, select the Properties button in the pop-up list, enter my computer property settings.

3. In the property box, in the above options, select “Advanced”, enter the advanced options, and then you will see the “Environment Variables” button, click to enter The setting of the environment variable.

4, generally there is no java, environment variables at the beginning, so we choose the new button, then a new window will pop up.

5. Enter JAVA——HOME in the first column and enter the file path in the second column to complete the creation of the environment variable. This will allow you to proceed to the next step.

6. Create a new box in the upper box.

New Path variable value plus: %JAVA_HOME%\\bin;%JAVA_HOME%\\jre\\bin

7, continue to create.

New CLASSPATH variable value plus: %JAVA_HOME%\\lib;%JAVA_HOME%\\lib\\dt.jar;%JAVA_HOME%\\lib\\tools.jar

8, so Once it is done, click OK to complete the setting of the JAVA environment variable, and check it below.

9. Click Start, click Run, the run window pops up, type mad in the frame, and then click Run. This will bring up the console window.


10. In the console window, enter JAVAC, check it, and press Enter.

11, this will appear the specific JAVA, complete the setting of environment variables, you can JAVA programming, from simple to difficult, and slowly understand, you can complete JAVA learning.

Note: This is the variable setting of XP system, other systems can refer to.

Copyright © Windows knowledge All Rights Reserved