There are several environment variables that must be set depending
on the method that you selected to run the Derby tools
and startup utilities.
As mentioned in
choosing
a method to run the Derby tools and startup utilities, you must set
the DERBY_HOME environment variable so that you can use the command examples
that are presented in this manual. Adding the
Derby scripts
directory to your command execution PATH makes the scripts easier to use and
enables you to use the script examples in this manual. The CLASSPATH environment
variable must be set if you are using
Derby in
a Java program or executing the tools using the
java command.
The
steps below show you how to set the environment variables in a command window.
The settings are only valid for that window. If you close the command window
or open a new command window, you must set the environment variables again.
Tip: You can also set environment variables permanently. For example,
on Windows you can use the Control Panel to permanently set the environment
variables.
To set the environment variables: