You can create Derby databases for use on read-only media such as thumb-drives.
Derby databases in zip or jar files are also read-only databases.
Typically, read-only databases are deployed with an application in an embedded
environment.
Accessing databases within a jar file using the classpath/modulepath
Once an archive containing one or more Derby databases has been created it can be placed in the classpath/modulepath. This allows access to a database from within an application without the application's knowing the path of the archive.