The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Security Exceptions in Applets with File IO

Posted by Monte Gardner on March 07, 2001 at 11:25 AM

I'm trying to write a Java Applet that will
read from and write to files that are on the
same server/directory as the applet itself.
When I use methods to readFrom and WriteTo a
file in a console Application it seems to
be wroking fine. When I run these same
methods in an applet I get a
"Java.ms.com.SecurityException canNot access file "fileName"
exception.

Can someone explain why I can't write to server files
in an applet, or point me to somewhere where I can
learn more about Security in Java?



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us