...
Code Block |
---|
java -Djava.security.manager=my.security.ManagerCustomManager ... |
Invocation of the setSecurityManager()
method may be omitted in controlled environments where it is known that a default global security manager is always installed from the command line; this is not a typical case. In this case, attempts to invoke setSecurityManager()
will throw a SecurityException
if the current security policy enforced by the global security manager forbids replacements (by omitting the RuntimePermission("setSecurityManager")
).
...