Apache Derby Database Implementation Documentation - rsanchez-wsu/RaiderPlanner GitHub Wiki
Setting up Derby
In order to use Derby, you first have to download the appropriate software for Eclipse.
Help -> Install New Software- Select
All Available Sitesunderwork withand install "Data Tools Platform Enablement for Apache Derby". - Open the database perspective that you will be using to access the database, go to
Window -> Perspective -> Open Perspective -> Otherand select the "Database Development" option. - Right-click the "Database Connections" folder and select "New..." or click on the "New Database Profile" button in the toolbar of the "Data Source Explorer"
- Choose "Derby" and click
Next

- Click the "New Driver Definition" button near the top of the dialog box
- Choose "Derby Embedded JDBC Driver" version 10.2 from the list
- Click the "JAR List" tab
- Click the "Add JAR/Zip ..." button
- Browse to the location where Gradle downloaded/cached the Derby JAR Typically in
.gradle/caches/modules-2/files-2.1/org.apache.derby/derby/10.14.1.0/3bcd8b1af3f8cd022d54d331e00064776be04f9c/derby-10.14.1.0.jar - Select the generic
derby.jarfrom the driver list and click "Remove JAR/Zip" - Click OK.
- Select a location for your database outside of your working directory and click Finish.

It would also be a good idea to test your ping to ensure the connection is successful.

Connecting to your database
- Right-click on your database connection and select
Connect - The default properties should be sufficient. Click
Apply and Close - Right-click
MyDBand selectGenerate DDL... - Click
Next, leaving the checkboxes unchanged. - Click
Nextagain. - Select the destination folder you wish to save and name the SQL script.
- Check the
Open DDL file for editingbox. - Click
Next. - Click
Finish.

- The DDL file will open and you will be able to add your SQL scripts.