Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Programatically setting security Policy

843811Jul 12 2001 — edited Jul 18 2001
I'm trying to reduce the number of arguments that have to pass to my program. I have a configuration file that I would like to specify java.* properties in, and have my program set them as needed.

How do I set the Policy file for the VM without specifying java.security.policy on the command line. I tried:

System.setProperty("java.security.policy", "my policy file" )

When is that system property read?

charlie

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 15 2001
Added on Jul 12 2001
2 comments
48 views