In this section the Derby database engine is loaded by the Derby IJ tool. The Derby embedded driver is used to create and connect to the database firstdb. A few basic SQL commands are demonstrated.
The example commands defining DERBY_HOME use the fictitious filesystem paths C:\derby for Windows examples and /opt/derby for UNIX examples. Be sure to adjust these commands so DERBY_HOME indicates the location of the Derby installation on the system being used. The following activity sequence shows
set DERBY_HOME=C:\derby md DERBYDBS cd DERBYDBS copy %DERBY_HOME%\demo\programs\toursdb\*.sql .
export DERBY_HOME=/opt/derby mkdir DERBYDBS cd DERBYDBS cp $DERBY_HOME/demo/programs/toursdb/*.sql .