This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Applets and the fly likes java.security.AccessControlException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Applets
Bookmark "java.security.AccessControlException" Watch "java.security.AccessControlException" New topic
Author

java.security.AccessControlException

M K Rayapudi
Ranch Hand

Joined: Feb 19, 2007
Posts: 157
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,


R6i
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42056
    
  64
You may have to run the code as "privileged":


Ping & DNS - my free Android networking tools app
 
GeeCON Prague 2014
 
subject: java.security.AccessControlException