You can also connect to databases in other directories (including subdirectories of the system directory) by specifying a relative or absolute path name to identify the database. The way you specify an absolute path is defined by the host operating system.
Using the connection URL as described here, you can connect to databases in more than one directory at a time.
Two examples:
jdbc:derby:../otherDirectory/myDB
jdbc:derby:c:/otherDirectory/myDB