I have a Java applet which I am trying to run within an HTML file using HTML applet tag
<applet>
, but it is throwing the following exception:
Caused by: java.security.AccessControlException: access denied
(java.io.FilePermission darkorange.png read)
Oracle site has explained giving access to applets using policy like:
appletviewer -J-Djava.security.policy=applet
http://docs.oracle.com/javase/tutorial/security/tour1/examples/WriteFile.html
But that is only in DOS, how do I make my browser recognize the security file?