Ensure that the JAVA_HOME environment variable specifies the directory where the JDK is installed.
Set the DERBY_HOME environment variable to point to the as-install/javadb directory.
For more information about these utilities, see the following documentation:
Derby Server and Administration Guide (http://db.apache.org/derby/docs/10.1/adminguide/)