The Java EE 7 Tutorial
The GlassFish Server includes the Java DB database server.
To start the Java DB server from the command line, open a terminal window or command prompt and execute:
For information about the Java DB included with the GlassFish Server, see
2.4.1 To Start the Database Server Using NetBeans IDE
When you start the GlassFish Server using NetBeans IDE, the database server starts automatically. If you ever need to start the server manually, however, follow these steps.
Click the Services tab.
Right-click Java DB and select Start Server.
To stop the database using NetBeans IDE, right-click Java DB and select Stop Server.