0

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?

Ashmin
  • 15
  • 2
  • 10
  • Why can't you click new? – Matthew Gaiser Sep 13 '19 at 05:08
  • @MatthewGaiser The New that isn't greyed out is the one for User variables - not for System variables. My question is why it needs to be a System variable. Unless the variable will be used by a service or some other context where no one is logged in there is no reason a User variable won't work. – Jerry Jeremiah Sep 13 '19 at 05:17
  • Related: https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/cant-edit-environment-variables-in-windows-10/29ca1561-5c4d-4c0d-ab93-808411a062a3 – Jerry Jeremiah Sep 13 '19 at 05:18
  • @JerryJeremiah I can edit the environment variables. What I am saying is that I am not able to create a new system variable. You can see in that youtube video that he was able to edit the system variable but I cannot. I think it might be the issue with the registry or group policy settings of windows. – Ashmin Sep 13 '19 at 18:34

2 Answers2

2

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

Justyn2
  • 89
  • 1
  • 5
1

(Win+X -> Y), going to "Advanced system settings", then clicking "Environment Variables". select system variables that properly launches the edit window and it works.