Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing java security file in windows

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.

like image 989
Ranjith Reddy Avatar asked Dec 26 '22 06:12

Ranjith Reddy


1 Answers

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.

like image 90
prasanth Avatar answered Jan 07 '23 19:01

prasanth