- 1. Start by acquiring the Apache Derby code from the Apache Web site. We want to use the latest snapshot of the code (10.1 alpha).
- 2. Unzip or untar the file you downloaded. Warning: there are many root-level files in the archive. I recommend creating a new directory to extract the files into cleanly.
- 3. Clean up by creating a new directory named lib/ and moving all of the *.jar files into lib.
- 4. Change directories to frameworks/NetworkServer/bin/.
- 5. Open setNetworkServerCP.ksh and add the line: DERBY_INSTALL=../../..
Source for setNetworkServerCP.ksh
# ---------------------------------------------------------
# -- This script file sets the CLASSPATH environment variable
# -- for use with Derby products in NetworkServer mode
# --
# -- To use this script from other locations, change the
# -- value assigned to DERBY_INSTALL to be an absolute path
# -- (export DERBY_INSTALL=/opt/derby) instead of the current relative path
# --
# -- This file for use on Unix ksh systems
# --
# ---------------------------------------------------------
DERBY_INSTALL=../../..
export CLASSPATH="${DERBY_INSTALL}/lib/derby.jar:${DERBY_INSTALL}/lib/derbytools.jar:${DERBY_INSTALL}/lib/derbynet.jar:${CLASSPATH}"
Apache Derby downloads: http://incubator.apache.org/derby/derby_downloads.html