# The installation directory

The installation program installs the Derby software in a directory of your choice.

See the `install.html` file for information on how to install Derby.

The installer automatically creates setup scripts that include an environment variable called DERBY_HOME. The installer's value is set to the Derby base directory.

    C:>echo %DERBY_HOME%
    C:\DERBY_HOME

If you want to set your own environment, Getting Started with Java DB instructs you on setting its value to the directory in which you installed the Derby software.

The installer for Derby installs all the files you need, including the documentation set, some example applications, and a sample database.

Details about the installation:

- index.html in the top-level directory is the top page for the on-line documentation.
- release_notes.html, in the top-level Derby base directory, contains important last-minute information. Read it first.
- /demo contains some sample applications, useful scripts, and prebuilt databases.
  - /databases includes prebuilt sample databases.
  - /programs includes sample applications.
- /doc contains the on-line documentation (including this document).
- /frameworks contains utilities and scripts for running Derby.
- /javadoc contains the documented APIs for the public classes and interfaces. Typically, you use the JDBC interface to interact with Derby; however, you can use some of these additional classes in certain situations.
- /lib contains the Derby libraries.

- Batch files and shell scripts
  The /frameworks/embedded/bin directory contains scripts for running some of the Derby tools and utilities. To customize your environment, put the directory first in your path.

Parent topic: After installing
Related concepts
Derby libraries and classpath
UNIX-specific issues