Connecting to a Derby Database

See Also

The Apache Derby Project provides an open source database server that is written fully in the Java programming language. Starting with version 8.2, the Sun Java System Application Server bundles the Derby database server instead of the PointBase database server.

To enable the Derby database server in the IDE, do one of the following:

Once you have installed the Derby module or registered an instance of version 8.2 of the application server, the Derby Database menu item appears under Tools in the main window.

To create a new Derby database:

  1. Choose Tools > Derby Database > Create Derby Database from the main window.
  2. Enter a name for the database, a user name, and a password.

    The IDE creates the database in the .netbeans-derby folder of your home directory.

To connect to a Derby database:

  1. In the Runtime window, expand Databases > Drivers.
  2. Right-click the appropriate Apache Derby driver node and choose Connect Using. Choose one of the following drivers:
  3. Enter the URL of the database. The URL format is given in the textbox:
    jdbc:derby://<HOST>[:<PORT>]/<DB>
  4. Enter a user name and password.
  5. Click OK. The IDE displays the connection to the database under the Databases node in the Runtime window.

Notes:

See Also
Connecting to a Database

Legal Notices