A detailed tutorial on WinXP system settings for Java environment variables

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.