Setting up your environment You need to set several environment variables so that the scripts that are included with the 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. Derbyenvironment setup environment variablesDERBY_HOME environment variablesJAVA_HOME environment variablesDERBY_HOME environment variablesPATHDERBY_HOMEenvironment variable, settingJAVA_HOMEenvironment variable, settingPATHenvironment variable, setting

To set the environment variables:

Set the environment variable to the location where you extracted the bin distribution.For example, if you installed in the c:\ directory on Windows, or the /opt/ directory on Unix, use the following command to set the environment variable: Operating SystemCommand UNIXexport =/opt/ Windowsset =c:\ Set the JAVA_HOME environment variable. The JAVA_HOME environment variable is used by the scripts to locate the JVM and Java applications. Operating SystemCommand UNIXexport JAVA_HOME=/usr/j2se Windowsset JAVA_HOME=C:\Program Files\Java\j2se1.4.2_05 Add the /bin directory to the PATH environment variable so that you can run the scripts from any directory. Operating SystemCommand UNIXexport PATH="$/bin:$PATH" Windowsset PATH=%%\bin;%PATH% When the environment variable is set and the underlying bin directory is included in the PATH environment variable, you can use shortened commands to start the 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 the settings: sysinfo If the environment variables are set correctly, the sysinfo command displays information about your JVM and the version of Derby you have installed. For more information on the scripts included in the bin distribution, see .