We all know that if you want to do Java program editing, you must first set the environment variables on the computer, so that you can run Java programs, together with the XP system to see how the computer set up Java variables.
1, before setting up environment variables, we must first install Java, first, find your Java installation path, when setting environment variables useful. Can be copied down first, easy to use.
2, remember the path, back to the desktop, find ' My Computer ' right click on my Computer, in the pop-up list to select the Properties button, enter my Computer properties settings.
3, in the property box, in the upper option, select Advanced, go to advanced options, and then you can see the "Environment Variables" button, click into the environment variable settings.
4, generally at first there is no Java, environment variables, so we choose the New button, this will pop up new window.
5, in the first column input java--home, in the second column input file path, completed the creation of environment variables. This will allow you to proceed to the next step.
6, in the top box to create a new.
New Path variable value plus:%java_home%bin;%java_home%jrebin
7, continue to new.
New Classpath Variable value plus:%java_home%lib;%java_home%libdt.jar;%java_home%libtools.jar
8, this completes, click OK, complete the setting of the Java environment variable, check below.
9. Click Start, click Run, pop up the Run window, enter mad in the box, and then click Run, which will eject the console window.
10, in the console window, input javac, for inspection, press ENTER.
11, so there is a specific Java, the completion of setting environment variables, you can do Java programming, simple to difficult, slowly proficient understanding, can complete the study of Java.