Date: Sat, 17 May 1997 13:18:00 -0700
Message-Id: <199705172018.NAA13571@puffin.eng.sun.com>
From: Marianne Mueller <mrm@Eng>
To: adrcunha@jaguari.dcc.unicamp.br
Subject: Re: Java and files
In general, applets cannot read or write files on the local file
system.
Using HotJava, you can configure the ~/.hotjava/properties file to
allow applets to do this.
In upcoming releases of the JDK and of java-enable browsers, it will
be possible to configure the system so that trusted applets can read
particular files.
For now, one workaround is to install your applet in a directory on
your CLASSPATH. Such "local" applets aren't subject to the
restrictions of the applet security manager.
Refer to http://java.sun.com/sfaq for more info about the current
applet model.
Marianne
> X-Authentication-Warning: pinheiros.dcc.unicamp.br: adrcunha owned process doing -bs
> Date: Fri, 16 May 1997 15:12:29 -0300 (EST)
> From: Adriano Camargo Rodrigues da Cunha <adrcunha@jaguari.dcc.unicamp.br>
> X-Sender: adrcunha@pinheiros
>
>
> Hello!
>
> I have such a stupid question, but I can't find an answer to it. I
> had read the Java FAQ about Security, but it don't tell nothing about my
> question.
> My question is: can MY applet read a file on MY area? [of course,
> this file have read permission].
> Why I want to do it? I created a banner applet, and for commodity,
> I would like to put the messages on a text file. Both applet and text file
> will be on the same directory.
> Thanks a lot for your attention,
>
> ___
> Adriano Camargo Rodrigues da Cunha Engenharia de Computacao - UNICAMP
> http://www.dcc.unicamp.br/~adrcunha
> adrcunha@dcc.unicamp.br
>
>