Windows: How to add an environment variable?

To add an environment variable, start the Start Menu and depending on whether you have set the PL or ENG language in Windows enter the appropriate phrase:

In the next window, click on the “Environment variables” button.

We will open a window with environmental variables. The red frame is marked by variables that are defined as the active user, and below in the green frame there are global variables, i.e. those that are visible and active for all users.

We click “New” and a window will appear, where we will enter the name of the new environment variable and its value. I created a variable named HADOOP_HOME.

Click OK and our environment variable is already visible in the list.


In some cases it will be required to restart the program so that the environment variable is read again. It all depends on the logic of the target software for which the given environment variable was created.

If you enjoyed this post please add the comment below or share this post on your Facebook, Twitter, LinkedIn or another social media webpage.
Thanks in advanced!

0 0 vote
Article Rating
Notify of
Inline Feedbacks
View all comments