Hi Kevin, You can also look at this Derby WIKI page on how to set-up Derby to start as a window service with pointers to 3 alternatives (including srvany): http://wiki.apache.org/db-derby/DerbyWindowsService
There is also additional information in the JIRA below on how to use tomcat5.exe as a 4th alternative to run Derby's network server as a windows service: http://issues.apache.org/jira/browse/DERBY-187 Hope this helps --francois On Fri, Feb 6, 2009 at 1:30 AM, feiKai <[email protected]> wrote: > Dears, > > I'm a new Derby user. > > When I clicked startNetworkServer.bat, there's always a comand line window > shows up, so I'm trying to create a windows service to run derby. > > Here I met a problem, when I tried to create a windows service for derby > network server, it showed successed. But when I tried to start it, it > failed. Error code 1053. > > I tried 2 ways to do that. > This is my steps to create Derby service > Way 1: use sc.exe in comand lien > start -> run ->cmd > sc create DerbyNet binpath= > "c:\derby\frameworks\NetworkServer\bin\startNetworkServer.bat" start= auto > when starting this service: Error Code 1053 > > > Way 2: I used instsrv.exe and srvany.exe to create service > start -> run ->cmd > instsrv DerbyNet "c:\srvany.exe" > start -> run ->regedit > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DerbyNet > new a string value: Application > &nbs p; value data: > c:\derby\frameworks\NetworkServer\bin\startNetworkServer.bat > when starting this service: The service started and stoped > > Actually, what I want is to hide the command line window, is there any > idea? > > --------------------------- > Have a Nice Day~! > Kevin > > > > ------------------------------ > 使用新一代 Windows Live Messenger 轻松交流和共享! 立刻下载!<http://im.live.cn/messenger.aspx> >
