Set the DERBY_INSTALL environment variable to point to the appserver_install_dir/derby directory.
Unset your CLASSPATH environment variable.
(Optional) You can also set the following properties:
Set DERBY_SERVER_HOST to the host on which the network server will listen.
Can also be set to 0.0.0.0 to enable all listeners.
Set DERBY_SERVER_PORT to the port number on which the network server will listen.
For more information about these utilities, see the Derby Tools and Admin guides.