# Re: Fwd: Returned mail: User unknown

schemers@Eng
Tue, 26 Jan 1999 22:09:02 -0800 (PST)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: JDCNewsletter@Sun.com: "JDC Newsletter Vol. 2 No. 5"
- Previous message: schemers@Eng: "Re: Fwd: Returned mail: User unknown"

    Date: Tue, 26 Jan 1999 22:09:02 -0800 (PST)

    From: schemers@Eng

    To: "Vijayasree Krishnaprasad" <viji_krish@hotmail.com>,

    Subject: Re: Fwd: Returned mail: User unknown

    In-Reply-To: <13998.44054.652122.100948@crypto.eng.sun.com>

    	<13998.44054.652122.100948@crypto.eng.sun.com>

I also forgot to mention that URLs should use slashes (like you
have in the codebase line), and FilePermissions should use
whatever the path separator is on your platform. i.e., on
windows it is backslash. Since backslash is a special character,
you'll need two:

permission java.io.FilePermission "C:\\catv\\newfile", "write";

The two backslashes will be converted to one by the parser.

roland

schemers@Eng writes:
> Vijayasree Krishnaprasad writes:
> >
> > Hi
> > I'm trying to use the security features of java (JDK 1.2). I followed
> > all the steps mentioned in the tutorial for setting up policy files. I
> > cannot get appletviewer to work . In other words i keep getting access
> > control exceptions. I'm working on Win95. The response is the samewith
> > and without using the -J-D option.
> > the policy file is something like this
> >
> > /* AUTOMATICALLY GENERATED ON Mon Jan 25 13:16:22 PST 1999*/
> > /* DO NOT EDIT */
> >
> > grant codeBase "file:/c:/test/*" {
> > permission java.io.FilePermission "C:/catv/newfile", "write";
> > };
> >
> > I have tried various codebases like file:/c:/test , without the * etc.
> > Should the permission have slashes or backslashes
> >
>
> Unfortunately this a bug that crept in at the last minute. This will
> be fixed in JDK 1.2.2. IN the mean time, you can change the "*" to
> a "-".
>
> roland
>

- Next message: JDCNewsletter@Sun.com: "JDC Newsletter Vol. 2 No. 5"
- Previous message: schemers@Eng: "Re: Fwd: Returned mail: User unknown"