Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
java -Djava.security.manager=classmy.ofsecurity.managerManager ...

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")).

...