Reputation: 1724
I am installing Java JDK in Windows 10 machine that requires registering its path by editing System Variables in Windows settings, but I tried both as an admin and regular user and it doesn't allow me to add the path, even copy paste or just adding any character.I have no trouble doing this in Win 8 until I am 'tempted' to avail and run free upgrade by Microsoft.
Q1:
Is this A bug in Windows 10? I update my machine regularly and also auto update is turned on to ensure to get the latest fix from Microsoft. Kaspersky is also disabled temporarily.
Q2:
How do you edit the system variable in Win 10 machine? I am planning to downgrade my Machine to windows 7 or 8 if this issue is not fixed.
Any ideas?
Upvotes: 11
Views: 59577
Reputation: 5810
I was also facing the same issue.
When you search with "Environment Variable" you will get two result
Now you can change variables (user & system variables) as per your requirement. You are done here!
Below is more detail about those two options
Environment Variable for your account - This will only allow you to change the "user variable". system variable will be disabled.
Edit the system environment variable - With this option, you can change both (user or system variables). Once you select this option, you will get a popup where you need to click on "Environment Variables".
Upvotes: 17
Reputation: 1
There is a simple solution if your global environment variables are disabled.
Follow these steps to open it in admin mode:
Upvotes: -1
Reputation: 131
I got around it by opening the System page in Control Panel (Win+X -> Y), going to "Advanced system settings", then clicking "Environment Variables". That properly launches the edit window and it works.
Upvotes: 2
Reputation: 119
My situation is a bit different as I use a small 7" windows tidy notebook called "one-notebook (One MIX)". It seems the "OK" key is not shown in the 2nd stage in horizontal position and you need to rotate the screen to see the OK. Spend a lunch time for that.
Upvotes: 0
Reputation: 71
When I was trying to add a new path to my system variables, I was unable to select the edit button. To get to system variables I went to my search bar and selected "edit environmental variables for your account." When i did this, the edit button was grayed out and I couldn't add a new path. To fix this i typed in my search bar and selected "edit the system environment variables" once that box comes up right above the ok button select "click environmental variables". Yay, the path edit button is no longer grayed out. Hope this helps
Upvotes: 7
Reputation: 71
I also faced similar problem after installation of new JDK and following steps resolved the issue:-
If these steps doesn't work than you can create a new Variable.
Upvotes: 1
Reputation:
If you cant edit system variable under Path in windows 10, try this instead
Login as administrator
go to your Java folder e.g
C:\Program Files\Java\jdk8\bin and copy.
Now in search box beside windows logo at the bottom type
path
and select the one that says
'edit the system environment variables'
This is important, select 'New' tab in User variables for Administrator, not the 'New' tab from 'System variables' as you cant edit it.Now name it as you wish, mine is PATH.Now copy and paste the path where you installed Java, mine is under
c:\Program Files\Java\jdk8\bin
Hit ok to exit.
Restart your command line and test Java
java -version
it should tell you java version and Java is successfully installed and accessible.Start using it and cheers
Upvotes: 7