Java Platform, Enterprise Edition (Java EE) 8 The Java EE Tutorial

## Starting and Stopping Apache Derby

GlassFish Server includes Apache Derby.

To start Derby from the command line, open a terminal window or command prompt, change to the `as-install/bin` directory, and execute:

    asadmin start-database

To stop Derby from the command line, open a terminal window or command prompt, change to the `as-install/bin` directory, and execute:

    asadmin stop-database

For information about Apache Derby included with GlassFish Server, see the Release Notes that are located in the `as-install/javadb/` directory.

### To Start Derby Using NetBeans IDE

When you start GlassFish Server using NetBeans IDE, the database server starts automatically. If you ever need to start the server manually, however, follow these steps.

1. Click the Services tab.

2. Expand Databases.

3. Right-click Java DB and select Start Server.

Next Steps

To stop the database using NetBeans IDE, right-click Java DB and select Stop Server.

Copyright © 2017, Oracle and/or its affiliates. All rights reserved.