• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.security.AccessControlException

 
M K Rayapudi
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am invoking an applet from an HTML file, but I am getting the below exception:
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.plugin.javascript)

the applet class code (JavaSocketBridge.java), which is throwing the above exception is as follows:the applet tag in my HTML page looks as follows:
where JavaSocketBridge.jar contains JavaSocketBridge.class, all the jar files are signed.

Can you please let me know where I am doing wrong?
Thank you,

 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may have to run the code as "privileged":
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic