#!/bin/bash if [ "${GERONIMO_HOME}" = "" ] then echo Please define the GERONIMO_HOME environment variable. exit fi export G_PATH=${GERONIMO_HOME}/repository/org/apache/derby/ export CLASSPATH=${G_PATH}/derby/10.1.1.0/derby-10.1.1.0.jar export CLASSPATH=${CLASSPATH}:${G_PATH}/derbynet/10.1.1.0/derbynet-10.1.1.0.jar export CLASSPATH=${CLASSPATH}:${G_PATH}/derbytools/10.1.1.0/derbytools-10.1.1.0.jar export CLASSPATH=${CLASSPATH}:${G_PATH}/derbyclient/10.1.1.0/derbyclient-10.1.1.0.jar export echo "Invoking IJ command line tool to create the database and tables...please wait" java -Dij.driver=org.apache.derby.jdbc.ClientDriver -Dij.protocol=jdbc:derby://localhost:1527/ org.apache.derby.tools.ij < derby.txt #java -Dij.driver=org.apache.derby.jdbc.ClientDriver -Dij.protocol=jdbc:derby://localhost:1527/ org.apache.derby.tools.ij echo "Table creation complete"