Java application (file BAT) as Windows Service. Help !
807589Nov 27 2008 — edited Nov 27 2008Hi all,
I have developed a java console application which has to be a Windows Service; it's started by a common BAT file (run.bat). I have tried creating Service as follows using SC.exe windows command:
sc create myService binPath= C:\Dev\MyAppl\run.bat DisplayName= myServiceName
Starting it from Services or console ("sc start myService"), I get the following error:
Error 1053: The service did not respond to the start or control request in a timely fashion
I have also tried converting BAT file to EXE file with tool BAT2EXE but result is the same
Please help, I'm becoming crazy !
Thanks and best regards,
Alessandro