To run the Derby Network Server sample program:
java org.apache.derby.tools.sysinfoThis command displays the Derby jar files that are in the classpath.
java SimpleNetworkServerSampleIf the program runs successfully, you will receive output that is similar to that shown in the following exampleS:
Starting Network Server Testing if Network Server is up and running! Derby Network Server now running Got an embedded connection. Testing embedded connection by executing a sample query number of rows in sys.systables = 16 While my app is busy with embedded work, ij might connect like this: $ java -Dij.user=me -Dij.password=pw -Dij.protocol= jdbc:derby:\\localhost:1527\ org.apache.derby.tools.ij ij> connect 'NSSimpleDB'; Clients can continue to connect: Press [Enter] to stop Server