Shutting down by using the command line From the command line, you can shut down the Network Server by invoking a jar file or a class. Shutting down Network Serverfrom the command line

You must provide user credential arguments to shut down a server running with user authentication.

To shut down the Network Server by invoking a jar file from the $/lib directory, use: java -jar derbyrun.jar server shutdown [-h <hostname>] [-p <portnumber>] [-user <username>] [-password <password>] or java -jar derbynet.jar shutdown [-h <hostname>] [-p <portnumber>] [-user <username>] [-password <password>] To shut down the Network Server by invoking a class, use: java org.apache.derby.drda.NetworkServerControl shutdown [-h <hostname>] [-p <portnumber>] [-user <username>] [-password <password>]