environment-variablessystem-variable

why i am not able to edit or create system variables in windows?


I was trying to set the GRADLE_HOME system variable for my system as per this video in youtube. I am admin user and only user in my system.

enter image description here

This image is screenshot from my desktop. As you can see that I am not able to create or edit the system variable.

can somebody tell me how to solve this problem?


Solution

  • Press the windows key and type env, the first result should be "Edit the system environment variables". Clicking on that should bring you straight to "System Properties" where you can click on "Environment Variables..." in the bottom right corner. There you should be able to change system variables.

    Or you can run regedit and the variables are in Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment