You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Bryan Pendleton <bp...@amberpoint.com> on 2010/02/01 22:30:54 UTC

Re: DERBY-4530: Unable to run derby as windows service

> Could you pls help me in explaining the steps how to create derby 
> service and run successfully?
> 
> C:\Softwares\apache-tomcat-5.5.28\apache-tomcat-5.5.28\bin\tomcat5.exe 
> //IS//DerbyServer1 --DisplayName="DerbyServer1" --StartMode=jvm 
> --StopMode=exe --StartClass=org.apache.derby.drda.NetworkServerControl 
> --StartParams=start --Classpath=C:\Apache\derby 
> -10.4.1.3\lib\derby.jar;C:\Apache\derby -10.4.1.3\lib\derbynet.jar 
> --Jvm=C:\DB\DBDIMB\Software\Java\jre\bin\server\jvm.dll 
> --StopClass=org.apache.derby.drda.NetworkServerControl 
> --StopParams=shutdown

This looks like a fine command. Did you pass it to "sc create"?

You need to do "sc create" to define the service to Windows, then "sc start"
and "sc stop" should start and stop it.

thanks,

bryan