From: "Kritchai Kuntakom" <kkuntakom@hotmail.com>
To: <java-security@java.sun.com>
Subject: q about applet security
Date: Thu, 8 Apr 1999 13:06:05 -0500
------=_NextPart_000_0004_01BE81C0.8FE9F110
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Sun-Content-Length: 1501
Refer to "Designing and Building Advanced JavaTM Applications" By Calvin =
Austin, and Monica Pawlan
Your tutorial is easy to understand. I still have some questions =
though.
I have tried your example using 'applet viewer', it works fine. =20
Now how am I going to run it using the browser, both IE and NS?
I currently use NS 4.51, I believe that it uses VM Java1.2.
Here is how I do it.
1. I put the 'Write.jp' in folder 'c:\test\'
Q: Does it have to be located in $JAVA_HOME/jre/lib/security or=20
$USER_HOME and be named as 'java.policy', for it to work?
A:
2. In 'c:\program files\JavaSoft\jre\1.2\lib\security', I put a line=20
'policy.url.3=3Dfile:/c:/test/Write.jp' in file 'java.security'.
I guess browser will read this file to locate policy file.
note: I have Java1.2 installed. So I'm not sure browser uses VM=20
that comes with Java1.2 or one comes with browser.
Also I'm not sure where is the folder for VM that come with =
browser,=20
I guess it is 'c:\program files\JavaSoft\jre\1.2\lib\security'. =
Is that right?
So are we refer to 'java.security file in =
'c:\JKD1.2\jre\lib\security'=20
or c:\Program Files\JavaSoft\jre\1.2\lib\security'?
3. now when browser load applet that tries to access local file it =
should read=20
policy file from 'c:\test\'. But somehow it does not work, nothing =
is=20
happening. Why???
Hope to hear from you soon.
Thank you,
Mr.K
kkuntakom@hotmail.com
------=_NextPart_000_0004_01BE81C0.8FE9F110
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Sun-Content-Length: 3583
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">