Recommended practices

When developing Derby applications, create a single directory to hold your database or databases, preferably in a secured branch of the file system such as one owned by the account which boots the JVM.

Give this directory a unique name, to help you remember that:
Related concepts
Booting databases
The error log
derby.properties
Double-booting system behavior
Connecting to databases outside the system directory
Embedded systems and properties