While Derby is no longer the database I Use, in the past I did access a Derby database using Squirrel.
SQuirreL SQL Client is a graphical Java program that will allow you to view the structure of a JDBC
compliant database, browse the data in tables, issue SQL commands etc.
Squirrel can be found at http://www.squirrelsql.org/
Go to the 'Download and installation' page from the menu on the left.
Download the 'Plain Zip format..' version. The current file to download is squirrel-sql-3.1.2-standard.zip
After downloading, extract into the folder of your choice.
To start squirrel, run squirrel-sql.bat or squirrel-sql.sh, depending upon your system.
One time setup.
After starting Squirrel:
A) Select the Drivers tab on the far left.
B) Double click 'Apache Derby Embedded'
C) In the 'Example URL' replace <database>[;create=true] with the location of the Derby data
which should be something like C:/AwareIm/Data/BASDB. So the Example URL will be: jdbc:derby:C:/AwareIm/Data/BASDB
D) Select the 'Extra Class Path' tab and press the 'Add' button.
E) Find the derby.jar file, which should be in AwareIM\Tomcat\shared\lib and press 'Open'. Press 'OK' to close the driver form.
F) Select the 'Aliases' tab on the far left and press the plus sign button to create a new Aliases.
G) Enter a name and select the 'Apache Derby Embedded' driver.
H) Press the test button, enter User and Password if needed and press the connect button. Hopefully you get a 'Connection successful' response.
I) Press 'OK' to save the aliase.
J) The just created alias will connect to the AwareIM production database.
K) To connect to the test database, repeat steps F thru I. In step G, in the URL, replace BASDB with BASDBTEST
To use Squirrel
A) Double click on one of the aliases you just created, enter user and password if needed and press connect.
B) You should see 2 tabs. The 'Objects' tab will display various database objects and the 'SQL' tab where you can enter sql statements to access the database.
NOTE: Before useing Squirrel, you must shutdown AwareIM. I think this is because AwareIM uses Derby as an embedded database.