As a parameter to the JVM command line

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

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

Related concepts
Using a properties object within an application or statement