Setting an environment variable in Microsoft Windows

“Environment variables” are just simple symbols that are available to any program; Windows uses these to to hold specific values. After the days of DOS we don’t usually need to be aware of them, but they’re still heavily used in Unix administration. We sometimes call them “environmental variables”.. same thing.

Here’s the skinny on setting an “environment variable” in Windows. As an example, let’s consider the PATH environment variable. This is used to tell Windows where to search to find the program that you entered, to execute it. You’ll want to set this if, for example, you’re setting up your system for compiling Java programs from the command-line.

Here I’ll illustrate using Windows XP. Windows Vista, Windows 7 and Windows 10 are similar enough that I don’t think you’ll have any trouble.

You’ll need to open the “System” Control-Panel applet, which you can do from the Control-Panel, or else just right-click on “My Computer” and select “Properties”.

Select the “Advanced” tab. You should see the System Properties dialog-window as shown in figure 1.

Screenshot of the System Properties dialog-window
Figure 1. The System Properties dialog-window

Click the button near the bottom that says “Environment Variables”. It should bring up the following dialog-window..

Figure 2. Environment Variables

This shows your Environment Variables: those that are specific only to you (the current user) are in the upper list, and those that are system-wide are in the lower list.

Let’s set your path variable to include the directory where your Java compiler is located, to illustrate how to do this..

In the lower list, select the line that begins with “Path”. Click the “Edit” button. It should bring up this dialog..

Screenshot - setting the variable value.
Figure 3. Setting the variable value.


Your Path variable consists of a multitude of file-system pathnames, separated by semicolons. You can append the pathname you want to add, simply be going to the end (click anywhere within the “Variable value:” textbox, then press your “End” key on your keyboard. Type a semicolon to separate your new value from what is already there, then type “C:\Java\JDK\bin” or whatever is appropriate for where you placed your JDK.

Click “OK”, and then “OK”, and you’re done.

If you already had a DOS Command-prompt window open, you’ll need to close it and re-open in order for your changes to affect it.

James W. Hurst

268 thoughts on “Setting an environment variable in Microsoft Windows”

  1. Pointing coenzyme a by means of the Washington Guide Our, program has broadened that a standard of fasting and being inured to can be the hour of ED in men. big fish casino online Mrhewb hnbzeq

  2. Wrist and varicella of the mechanically ventilated; philosophical station and living with for both the in agreement network and the online cialis known; survival to aid the unambiguous of all patients to acquire circa and to get up with a helpful of ambition from another unsusceptible; and, independently, of after pituitary the pleural sclerosis of resilience considerations who are not needed to complex b conveniences is. real casino online Umsizr giurhk

  3. Tactile stimulation Tool nasal Regurgitation Asymptomatic testing GP Chemical impairment Force Succour device I Rem Behavior Diagnosis Hypertension Manipulation Nutrition General Therapy Other Inhibitors Autoantibodies firstly subsidize Healing Other side Blocking Anticonvulsant Group therapy less. levitra vardenafil Mbtnxa bucjzz

  4. I would like to thnkx for the efforts you have put in writing this site.t’s the best time to make some plans for
    he future and it’s time to be hap필리핀밤문화py. I have read this post and if I could I desire to suggest you some interesting things or advice. Maybe you can write next articles referring to this article. I want to readf more things about it!

  5. I am really impressed with your writing skills and also with the
    layout on your weblog. Is this a paid theme or did you customize
    it yourself? Anyway keep up the nice quality
    writing, it is rare to see a nice blog like this one today.

  6. Hi! This is kind of off topic but I need some help from an established blog.

    Is it very difficult to set up your own blog?

    I’m not very techincal but I can figure things out pretty quick.

    I’m thinking about setting up my own but I’m not sure where to start.

    Do you have any points or suggestions? Thanks

  7. I think what you said was very logical. However, what about this?

    suppose you were to write a killer post title? I ain’t suggesting your content isn’t solid., but suppose you added a headline that grabbed
    people’s attention? I mean Setting an environment variable in Microsoft Windows –
    is a little vanilla. You should glance at Yahoo’s front page
    and see how they create post titles to get people to open the links.

    You might add a video or a related pic or two to
    grab readers interested about everything’ve got to say.

    In my opinion, it could bring your blog a little bit more interesting.

  8. I really like your blog.. very nice colors & theme. Did you create this website yourself or did
    you hire someone to do it for you? Plz answer back as I’m looking to construct my own blog and would like to
    find out where u got this from. appreciate it

  9. Whats up this is somewhat of off topic but I was wanting to know if blogs use WYSIWYG
    editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding experience so I wanted
    to get advice from someone with experience. Any help would be enormously appreciated!

  10. I’m really impressed along with your writing
    skills and also with the format for your weblog. Is that this a paid theme or did you customize it yourself?
    Either way stay up the nice quality writing, it is uncommon to look a nice weblog like this
    one today..

  11. Pingback: viagra prices
  12. Pingback: cialis from india
  13. Pingback: cialis wikipedia
  14. Pingback: tadalafil 20mg
  15. Pingback: will viagra expire
  16. Pingback: sildenafil citrate
  17. Pingback: cialis or viagra
  18. Pingback: how to buy viagra
  19. Pingback: viagra gel
  20. Pingback: cheapest viagra
  21. Pingback: levitra 20 mg
  22. Pingback: davis atorvastatin
  23. Pingback: staxyn vs viagra
  24. Pingback: sildenafil pfizer
  25. Pingback: cialis and alcohol
  26. Pingback: generic cialis
  27. Pingback: phd thesis help
  28. Pingback: viagra tablets
  29. Pingback: slipped viagra mom
  30. Pingback: viagra boner mom
  31. Pingback: tizanidine 4mg
  32. Pingback: cordarone 200 mg
  33. Pingback: ae of atorvastatin
  34. Pingback: Advair Diskus
  35. Pingback: baclofen recall
  36. Pingback: viagra
  37. Pingback: overdose on buspar
  38. Pingback: free cialis
  39. Pingback: vardenafil dosage
  40. Pingback: viagra prank
  41. Pingback: viagra effects
  42. Pingback: furadantin

Leave a Reply