Q:

Can't update java.security file - want to add bouncy castle provider

I am trying to use 'Bouncy castle' library in JAVA and want to add that jar file(bouncy castle's) to the providers list in the 'java.security file', I'm using windows7 and I have changed the permissions too for the files and folders but yet I'm getting an error "Access to 'complete-path' was denied". Kindly help me in how to deal with this error.

A:

You can only save edits made to a java.security file if the editor you are using is running as an administrator.
Notepad is sadly not good enough for this job, as Notepad only supports files with CR+LF line-endings and java.security uses LF line endings.  I normally use Notepad++ for this task, although Notepad2 and various other programmer's editors can be used instead if that's your preference.
Note that you must quit Notepad++ if it is currently running.  If Notepad++ is running and you attempt to start another copy of it (as administrator or otherwise), Notepad++ will figure out that it is already running and instead give focus to the already-running copy of Notepad++.

