无法以管理员身份更改 Windows 10 中的系统变量路径 [英] Unable to change system variable path in Windows 10 as an Admin

查看:40
本文介绍了无法以管理员身份更改 Windows 10 中的系统变量路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 Windows 10 机器上安装 Java JDK,需要通过在 Windows 设置中编辑系统变量来注册其路径,但我以管理员和普通用户的身份进行了尝试,但它不允许我添加路径,甚至复制粘贴或者只是添加任何字符.我在 Win 8 中执行此操作没有任何问题,直到我想"利用并运行 Microsoft 的免费升级.

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.

问题 1:

这是 Windows 10 中的错误吗?我定期更新我的机器,并且自动更新已打开以确保从 Microsoft 获得最新修复.卡巴斯基也被暂时禁用.

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:

Win 10 机器如何编辑系统变量?如果这个问题没有得到解决,我打算将我的机器降级到 Windows 7 或 8.

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.

有什么想法吗?

推荐答案

如果您无法在 Windows 10 的 Path 下编辑系统变量,请改用此方法

If you cant edit system variable under Path in windows 10, try this instead

以管理员身份登录

转到您的 Java 文件夹,例如

go to your Java folder e.g

C:\Program Files\Java\jdk8\bin and copy.

现在在底部windows logo旁边的搜索框中输入

Now in search box beside windows logo at the bottom type

path 

然后选择那个写着

'edit the system environment variables'

这很重要,请在管理员的用户变量中选择新建"选项卡,而不是系统变量"中的新建"选项卡,因为您无法对其进行编辑.现在随意命名,我的是 PATH.现在复制并粘贴你安装Java的路径,我的是

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

点击确定退出.

重新启动命令行并测试 Java

Restart your command line and test Java

 java -version

它应该告诉你 Java 版本和 Java 已成功安装和访问.开始使用它并欢呼

it should tell you java version and Java is successfully installed and accessible.Start using it and cheers

这篇关于无法以管理员身份更改 Windows 10 中的系统变量路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆