As a parameter to the JVM command line System propertiessetting on command line

You can set system-wide properties as parameters to the JVM command line when starting up the application or framework in which is embedded.

For other JVMs, see the JVM-specific documentation on setting system properties.