To add an env variable, start the Start Menu and depending on whether you have set the PL or ENG language [ How to add an environment variable on Windows ] 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 env variable and its value. I created a variable named HADOOP_HOME.
Click OK and our env variable is already visible in the list.
In some cases it will be required to restart the program so that the env variable is read again. It all depends on the logic of the target software for which the given env variable was created. That’s all about how to add an environment variable on Windows!
If you enjoyed this post please add the comment below and share this post on your Facebook, Twitter, LinkedIn or another social media webpage.
Thanks in advanced!