By default, you can connect to databases within the current system directory
(see ). To connect to
databases within the current system, just specify the database name on the
connection URL. For example, if your system directory contains a database
called myDB, you can connect to that database with the following connection
URL:
jdbc:derby:myDB
The full call within a Java program would be:
Connection conn =DriverManager.getConnection("jdbc:derby:myDB");