- 1. Run the following commands to set your environment and start the Derby network server:
bash$ export JAVA_HOME=/opt/IBMJava2-141/jre bash$ . setNetworkServerCP.ksh bash$ sh startNetworkServerCP.ksh Server is ready to accept connections on port 1527.
If you see the ready to accept connections message, congratulations, you have started the Apache Derby network server!
- Troubleshooting
- Apache Derby seems to work with the IBM JRE, Sun JRE, and Blackdown JRE. gcj, on the other hand, probably won't work. java -fullversion should give you a hint.
- Check your firewall settings; 1527 is the default port, but many firewalls will block this. It may also conflict with Oracle's tlisrv.
- You may need to allow Derby to accept requests from specific IP addresses; by default it only accepts connections from localhost. export DERBY_SERVER_PORT=0.0.0.0 is the most permissive :)
Now it's time to actually do something with it...