![set system variavle and user variable in windows](https://aemgeeks.com/wp-content/uploads/2023/03/set-system-variavle-and-user-variable-in-windows-591x381.jpg)
Content
- How to set environment variable in windows
- Example to set environment variable in windows
1. How to set environment variable in windows
- Search for the “System Environment” in windows search and open it.
- Open the “Advanced” tab and click on the “Environment Variables” button in the System Properties window.
- The Environment Variables window is divided into two sections. The “User Variables” section displays user-specific environment variables and “System Variables” displays system-wide environment variables. To add a variable, click the “New…” button under the appropriate section.
- Enter the variable name and value in the New User/System Variable prompt and click OK.
2. Example to set environment variable in windows
1. Search for the “System Environment” in windows search and open it.
![](https://aemgeeks.com/wp-content/uploads/2023/03/Environment-setup-in-windows-1-1024x700.png)
2. Open the “Advanced” tab and click on the “Environment Variables” button in the System Properties window.
![](https://aemgeeks.com/wp-content/uploads/2023/03/environment-setup-for-aem-advanced-tab.png)
3. The Environment Variables window is divided into two sections. The “User Variables” section displays user-specific environment variables and “System Variables” displays system-wide environment variables. To add a variable, click the “New…” button under the appropriate section.
![](https://aemgeeks.com/wp-content/uploads/2023/03/Environment-setup-in-windows-env-setup-aem.png)
4. Enter the variable name and value in the New User/System Variable prompt and click OK.
![](https://aemgeeks.com/wp-content/uploads/2023/03/Environment-setup-in-windows-set-JAVA_HOME.png)
Happy Coding!
Leave a Reply