Exporting Derby database in Netbeans

Steven picture Steven · Mar 29, 2013 · Viewed 23.6k times · Source

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.

Answer

Alvin Thompson picture Alvin Thompson · Jun 24, 2014

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.