By default, you can connect to databases within the current system directory
(see ). To connect to
databases within the current system directory, just specify the base name of the
database 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 method call within a Java program would be:
Connection conn = DriverManager.getConnection("jdbc:derby:myDB");