Hey folks,
I'm trying to write an applet that will display text depending on what is written on anotehr website (a sports ticker)
I get the following error when I try to run the program:
java.security.AccessControllException: access denied (java.net.SocketPermission resolve)
The code that is throwing the error is this:
This works fine when run from an application, is there something about Applets that don't let you use BufferedReader? Any help/suggestions?
Thanks.
I'm trying to write an applet that will display text depending on what is written on anotehr website (a sports ticker)
I get the following error when I try to run the program:
java.security.AccessControllException: access denied (java.net.SocketPermission resolve)
The code that is throwing the error is this:
Code:
String site = "[URL unfurl="true"]http://www.theWebsite.html";[/URL]
URL target = new URL(site);
BufferedReader br = new BufferedReader(new InputStreamReader(target.openStream()));
This works fine when run from an application, is there something about Applets that don't let you use BufferedReader? Any help/suggestions?
Thanks.