Java argument to specify Java.Security file for JVM

后端 未结 3 410
花落未央
花落未央 2020-12-30 05:29

I\'m looking for a java argument (or perhaps some different method) to allow me to specify a file to be used by the JVM as the java.security file, rather than using the one

3条回答
  •  暖寄归人
    2020-12-30 06:07

    Maybe the accepted answer on this thread would help you out; basically it says that you need to specify your own policy file and the final invocation should look like:

    java -Djava.security.manager -Djava.security.policy=/some/path/my.policy
    

提交回复
热议问题