I am using JRE7. I have signed the jar file using jarsigner. But still I get the exception
java.security.AccessControlException: access denied ("java.io.FilePermission"
"C:\Program Files\Java\jre7\lib\ext\Cert.P12" "read")
I am trying to read the Cert.P12 stored in that directory.
I generated certificate using keytool and signed the jar. When the browser prompted me i accepted the certificate. Is it because it is not a real certificate I am getting this error?
This code to read the file is an applet code.
http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html mentions that if it is signed the error will vanish. But it did not for me. It is an applet. I am trying to load from browser.