Exporting Derby database in Netbeans

database, derby, java, netbeans

Solution

By default, the database resides in your home folder under `.netbeans-derby` (this folder may be hidden under Windows). Copying this folder will work, but your lecturer will have to "register" this copied location with his IDE. To do this:

- Under `Services`, open the `Databases` node.

- Right-click on `Java DB` and select properties.

- In the `Database Location` field, enter the path to the copied folder.

Problem

I have a project with a derby database in it. I want to be able to make a backup or export the database so I can give it with the project files to my lecturer.

Original source