It's not a secret anymore!
The moose likes Applets and the fly likes AccessControlException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "AccessControlException" Watch "AccessControlException" New topic
Author

AccessControlException

Jeremy Hooie
Ranch Hand

Joined: Aug 22, 2001
Posts: 38
I have an Applet which runs fine in AppletViewer, but seems to hang up in a browser. I've already downloaded the Java Plug-In and used the HTML converter on the HTML file. Using the Java Console, I've found that there is an AccessControlException, specifically at java.net.SocketPermission %HOST% resolve where %HOST% is the name of my Web server. What causes this and how can I fix it?
Jeremy
[This message has been edited by Jeremy Hooie (edited August 29, 2001).]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17145
    
  27

An unsigned applet running in a browser is forbidden to talk to any server except the one it was loaded from. The AppletViewer has no such constraints.


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AccessControlException
 
jQuery in Action, 3rd edition