System.setProperties

System.setProperties

Class Overview | Class Members | This Package | All Packages

Syntax
public static void setProperties( Properties props )
Parameters
props
the new system properties.
Description
Sets the system properties to the Properties argument.

First, if there is a security manager, its checkPropertiesAccess method is called with no arguments. This may result in a security exception.

The argument becomes the current set of system properties for use by the getProperty method. If the argument is null, then the current set of system properties is forgotten.

Exceptions
SecurityException if the current thread cannot set the system properties.
See Also
SecurityException, checkPropertiesAccess