[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
java.policy ?
Hello,
I have created a custom Permission class. My application works fine with my
explicitly named policy file when using the java -D command line option, but
I am trying to get it to work with the standard system file
C:\jdk1.3\jre\lib\security\java.policy.
Here is what I have done:
I modified the java.policy to include the required Permissions for my app (I
tested the modification to ensure that it works using the java -D command
line option).
The C:\jdk1.3\jre\lib\security\java.security configuration file lists the
location as follow:
# The default is to have a single system-wide policy file,
# and a policy file in the user's home directory.
policy.url.1=file:${java.home}/lib/security/java.policy
policy.url.2=file:${user.home}/.java.policy
However, the java.policy is located in the C:\jdk1.3\jre\lib\security\. So,
I modified the java.security configuration to reflect the location of
java.policy file.
Is necessary to have the java.policy located in ${user.home}? If yes, what
is the value of this system variable in W2K environment?
Then I ran my application using just "java AppName". This of course did not
work. Any suggestions.
Thanks in advance,
Michael N.