简体   繁体   中英

how can i know the current java.policy in effect

I read from Java doc , the default location of java.policy is

java.home\lib\security\java.policy

and user location is

user.home\.java.policy

But I also notice that a path in my Windows

C:\Users\<<myid>>\AppData\LocalLow\Sun\Java\Deployment\security

I like to edit java policy file in different location. How can I show the current java policy in effective?

For example, type java.exe --show_me_all_permission_granted

Run Java with

-Djava.security.debug=access,failure,policy

You will see all access failures and the protection domain for each, including its policy file source, and the permissions assigned from each policy file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM