Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java application (file BAT) as Windows Service. Help !

807589Nov 27 2008 — edited Nov 27 2008
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 25 2008
Added on Nov 27 2008
2 comments
589 views