Mehdia
Mehdia

Reputation: 13

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.

Upvotes: 1

Views: 2743

Answers (2)

Kenneth Rowe
Kenneth Rowe

Reputation: 21

The solution for me was to copy the file somewhere else, update it and paste it back in. There is a security warning that I had to say 'continue' to.

Upvotes: 2

Luke Woodward
Luke Woodward

Reputation: 65044

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++.

Upvotes: 2

Related Questions