# 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 application's libraries. 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.
  Figure 1. Deploying an application, embedded Derby software, and the database. Storing the application in the database and setting properties as database-wide properties simplify deployment.

- 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