# Deploying Derby in an embedded environment

You can embed Derby in any Java application (single- or multi-user) by deploying the following packages.

- The Derby library (derby.jar).
- The libraries for the application. You have the option of storing these libraries in the database.
- The database or databases used by the application, in the context of their system directory.

In the following figure, the top graphic shows the deployment of an application, where the application, the Derby software for embedded use, the derby.properties file and the database are four objects. The bottom graphic shows a simplified deployment by reducing the number of objects to two by storing the application and the properties file in the database.

Figure 1. Two approaches to deploying a Derby application in an embedded environment

- Embedded systems and properties
  Database-wide properties are stored in the database and are simpler for deployment, while system-wide parameters might be easier for development.

Parent topic: Deployment issues
Related concepts
Embedded deployment application overview
Loading classes from a database
Embedded systems and properties