.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:
- 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...
- You can then set the path to the database directory as well as set the location where Java DB is installed.