# Re: file read

Charlie Lai (charlie@angeles.eng.sun.com)
Fri, 29 Jan 1999 09:16:34 -0800 (PST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Stone c: "THE #1 SELLING PRODUCT ON THE INTERNET IS...."
- Previous message: Charlie Lai: "Re: Applet Security"

    From: charlie@angeles.eng.sun.com (Charlie Lai)

    Message-Id: <199901291716.JAA21537@angeles.eng.sun.com>

    Subject: Re: file read

    To: balmelli@research.bell-labs.com

    Date: Fri, 29 Jan 1999 09:16:34 -0800 (PST)

    In-Reply-To: <36A806AB.9B554CCF@research.bell-labs.com> from "balmelli@research.bell-labs.com" at Jan 21, 99 09:03:40 pm

> Hi, i just tried to read a data file with the FileInputStream class.
> Everything works fine in
> local (appletviewer and netscape 4.5), but when executing the applet
> from a server,
> a get
>
> netscape.security.AppletSecurityException: security.checkread: Read
> of '.\dnr40199.txt' not permitted
>
> the file name is (as seen above) \dnr40199.txt. The file has maximum
> priorities (chmod 777).

it's probably because remote applets don't have access to the local
file system. try out:

http://java.sun.com/security/signExample

by signing your applet, things should work again.
thanks,
charlie

- Next message: Stone c: "THE #1 SELLING PRODUCT ON THE INTERNET IS...."
- Previous message: Charlie Lai: "Re: Applet Security"