Changing java security file in windows

给你一囗甜甜゛ 提交于 2019-12-22 09:18:09

问题


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.


回答1:


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/

edit:

The relevant information from the linked page:

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

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.




回答2:


1) Copy original java.security file to desktop. 2) Edit the file there and save it. 3) Copy the file to %JAVA_HOME%/\jre\lib\security 4) Replace the original file with modified one.



来源:https://stackoverflow.com/questions/15697451/changing-java-security-file-in-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!