It's not a secret anymore!*
The moose likes Applets and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "" Watch "" New topic

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: access denied (java.lang.RuntimePermission accessClassInPackage.sun.plugin.javascript)

the applet class code (, 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

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

Ping & DNS - my free Android networking tools app
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
Similar Threads
problem in using JSObject.getWindow() mehod
prolem while calling javascript method from applet in Netscape6.2
JSObject and Security
javascript and applet communication
Applet to Javascript Communication