Setting up your environment
You need to set several environment variables so that the scripts
that are included with the Derby bin distribution
run correctly. These scripts need to be run in an appropriate command line environment, i.e. a "Command Prompt" on Windows or a shell on Unix.
To set the environment variables:
- Set the DERBY_HOME environment
variable to the location where you extracted the Derby bin
distribution. For example, if you installed Derby in
the c:\Derby_10 directory on Windows, or the /opt/Derby_10 directory on Unix,
use the following command to set the DERBY_HOME environment
- Set the JAVA_HOME environment variable. The JAVA_HOME environment
variable is used by the scripts to locate the JVM and Java applications.
- Add the DERBY_HOME/bin directory
to the PATH environment variable so that you can run the Derby scripts
from any directory.
When the DERBY_HOME environment
variable is set and the underlying bin directory is included in the PATH environment variable, you can use shortened commands
to start the Derby tools.
- Verify that the DERBY_HOME and the JAVA_HOME environment variables
are set correctly, and that the DERBY_HOME/bin directory is added to the
PATH environment variable. Use the following command to check
environment variables are set correctly, the sysinfo command displays information
about your JVM and the version of Derby you have installed.