在Windows中更改java安全文件 [英] Changing java security file in windows

查看:246
本文介绍了在Windows中更改java安全文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编辑windows中的java.security文件。当我添加一个条目并尝试保存时,它会显示拒绝访问。如何更改此文件的权限。
我也试过让记事本以管理员身份运行,但它没有用。
请帮助。

I am trying to edit the java.security file in windows. When I add an entry to it and try to save, it says 'Access Denied'. How do I change the permissions to this file. I have also tried by making notepad to Run as administrator but it didn't work. Please help.

推荐答案

试试这个并说它是否有效。打开主机文件时,它对我有用。

Try this and say if it works. It worked for me while opening hosts file.

http://www.labnol.org/software/edit-hosts-files-as-administrator/13673/

编辑:

来自链接页面的相关信息:

The relevant information from the linked page:

步骤1.打开Windows开始菜单,搜索记事本应用程序,然后右键单击记事本图标。

Step 1. Open your Windows start menu, search for the notepad application and then right click the notepad icon.

步骤2.选择以管理员身份运行,然后在记事本中,浏览到文件夹(java.home \ lib\security\java.security)。

Step 2. Choose "Run as administrator" and then, while inside notepad, browse to folder (java.home\lib\security\java.security).

您现在可以编辑并将该文件保存在同一文件夹中,而不会出现任何问题。回顾一下,诀窍是,不是直接在关联的应用程序中打开受保护的文件,而是先以管理员身份运行应用程序,然后在其中打开文件。

You can now edit and save that file in the same folder without any issues. To recap, the trick is that instead of directly opening a protected file in the associated application, you run the application first as an administrator and then open the file inside it.

这篇关于在Windows中更改java安全文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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