I was under the impression that
applets could read files from their server. I'm getting this exception and the code follows. The applet is on a web page, on server, and is accessed with a browser.
java.security.AccessControlException: access denied (java.io.FilePermission test.xml read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at XMLGraphReader.loadGraph(XMLGraphReader.java:41)
at DemoApplet.init(DemoApplet.java:17)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
[ May 06, 2006: Message edited by: S. Stout ]
[ May 06, 2006: Message edited by: S. Stout ]