This week's book giveaway is in the Design forum.
We're giving away four copies of Mastering Non-Functional Requirements and have Sameer Paradkar on-line!
See this thread for details.
Win a copy of Mastering Non-Functional Requirements this week in the Design forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java.security.AccessControlException  RSS feed

 
M K Rayapudi
Ranch Hand
Posts: 163
  • 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: 42972
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
Boost this thread!