AccessControlException (access denied)

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Jun 2004
Posts: 2,108
Reputation: server_crash is on a distinguished road 
Solved Threads: 18
server_crash server_crash is offline Offline
Postaholic

AccessControlException (access denied)

 
0
  #1
May 15th, 2005
I can can use a BufferedReader to open a Streamat the command line, like this:
  1. BufferedReader br = new BufferedReader(new InpuStreamReader(URL.openStream()));



Once I try to use this same statement inside of my applet, I get an AccessControlException. I know it's something to do with security, but how do you get around that?
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 777
Reputation: Phaelax is on a distinguished road 
Solved Threads: 39
Phaelax Phaelax is offline Offline
Master Poster

Re: AccessControlException (access denied)

 
0
  #2
May 16th, 2005
Applets do not allow access outside of there local domain. This link might help.
http://java.sun.com/sfaq/
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC