Topic: 缺省策略文件的设置问题<XP下>

  Print this page

1.缺省策略文件的设置问题<XP下> Copy to clipboard
Posted by: hemea
Posted on: 2004-09-11 20:20

我的课本中关于路径指明的原文
“JAVA中,策略对象指出应用环境中资源可用的许可,如:读、写。用户的缺省策略保留在用户主目录中.java.policy文件内。拥护的缺省策略文件的路径在Windows NT中是:Winnt\Profiles\<Username>\.java.policy”
老师说XP跟NT差不多的,可是我找不到路径。
烦请大家指点。谢谢

2.Re:缺省策略文件的设置问题<XP下> [Re: hemea] Copy to clipboard
Posted by: why
Posted on: 2004-09-11 21:45

拥护的缺省策略文件???
是用户的 default policy file 吧!

Could it be a hidden file? Not likely though.
Perhaps it is not created yet, then create it manually (following the format);
or otherwise use the system policy file under JAVA_HOME\lib\security

3.Re:缺省策略文件的设置问题<XP下> [Re: hemea] Copy to clipboard
Posted by: hemea
Posted on: 2004-09-11 22:27

是啊 ……是用户的,不好意思打错了
是跟环境变量一样的格式么?

4.Re:缺省策略文件的设置问题<XP下> [Re: hemea] Copy to clipboard
Posted by: why
Posted on: 2004-09-11 22:43

hemea wrote:
是跟环境变量一样的格式么?

不明白阁下问甚么?
看看 documentation 吧
http://java.sun.com/j2se/1.4.2/docs/guide/security/PolicyFiles.html

5.Re:缺省策略文件的设置问题<XP下> [Re: hemea] Copy to clipboard
Posted by: hemea
Posted on: 2004-09-11 22:47

就是想请教下一下,如何在XP下设置策略文件的路径

对不起,是我提问太含糊了

6.Re:缺省策略文件的设置问题<XP下> [Re: hemea] Copy to clipboard
Posted by: why
Posted on: 2004-09-11 23:21

hemea wrote:
就是想请教下一下,如何在XP下设置策略文件的路径

对不起,是我提问太含糊了

I guess it is X:\Documents and Settings\USERNAME\.java.policy
unless you are not using the default (Windows) profile location for the user

well, it should be JRE_HOME\lib\security

7.Re:缺省策略文件的设置问题<XP下> [Re: hemea] Copy to clipboard
Posted by: hemea
Posted on: 2004-09-12 00:02

已经解决了!多谢

c:\>set JRE_HOME=c:\>jdk1.3\bin\security

8.Re:缺省策略文件的设置问题<XP下> [Re: hemea] Copy to clipboard
Posted by: why
Posted on: 2004-09-12 00:14

hemea wrote:
已经解决了!多谢

c:\>set JRE_HOME=c:\>jdk1.3\bin\security

QuestionQuestionQuestion

I don't think this is right. Anyhow... as long as it works for you.

9.Re:缺省策略文件的设置问题<XP下> [Re: why] Copy to clipboard
Posted by: hemea
Posted on: 2004-09-12 09:26

why wrote:
QuestionQuestionQuestion

I don't think this is right. Anyhow... as long as it works for you.

难道还是不对???


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923