.netbeans-derby is the default directory for storing Java DB databases.

What information does .netbeans-derby store?

This is the directory where Java DB stores its databases as well as log output. Each directory represents a specific Java DB database. Note that this directory is completely portable - you can move it to any other location or even to other machines running different operating systems.

When Java DB is registered, a database named 'sample' is automatically created, so you will see the directory named 'sample' there. If you have the visual web development plugin installed (this comes with the Java EE version of NetBeans), the 'vir' and 'travel' sample databases are also created and stored here.

There is also a log file, derby.log, which contains log output from running the Java DB server.

How do I change the location of a database?

To change the location of a database, do the following:

  1. In the NetBeans IDE go to the Services tab on the left, open up the Databases folder, right-click on the Java DB node and choose Properties...
  2. You can then set the path to the database directory as well as set the location where Java DB is installed.
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo