You must use a database connection URL when using the Derby-provided embedded driver to connect to a database.
The name of the database that you want to connect to
One or more of the supported attributes of the database connection URL, such as ;territory=ll_CC or ;create=true.
For more information, see the Java DB Developer's Guide.
jdbc:derby://server[:port]/databaseName[;URLAttributes=value[;...]]where the server and port specify the host name (or IP address) and port number where the server is listening for requests and databaseName is the name of the database you want to connect to. The URLAttributes can be either Derby embedded or network client attributes. See the Java DB Server and Administration Guide for more information on accessing the Network Server by using the network client.