I have a java app that runs as a Windows service via the "Yet Another Java Service Wrapper" (YAJSW) product. I cannot create this service using the Services feature because the program that is defined to the service is "java", and this is not a file from my app. The UI does not seem to allow you to specify any arbitrary command line.
Fortunately, yajsw comes with batch scripts to install and I can successfully launch those to install the service. It is just a little uglier. Unfortunately I have run into this problem when running those scripts:
http://www.advancedinstaller.com/forums ... =2&t=11082
BTW - this is what the "ImagePath" registry entry for the service looks like when installed by the batch file
"java" "-classpath" "C:\APPNAME\svcwrapper\wrapper.jar" "-Xrs" "-Dwrapper.service=true" "-Dwrapper.working.dir=C:APPNAME\svcwrapper\..\appserver" "-Dwrapper.config=C:\APPNAME\svcwrapper\conf\wrapper.conf" "-Dwrapper.additional.1x=-Xrs" "org.rzo.yajsw.boot.WrapperServiceBooter"
Mark
FOLLOW US
Get the latest news in Application Packaging