I am using Commons Daemon procrun (1.0.10.0 32-bit) on Windows 7 64bit (need to deliver a solution to customers that will work with 32bit and 64bit).
Here is my install.bat file ( Server.exe was formerly named prunsrv.exe ) .\Server.exe //IS//MyServiceName ^ --Install=Server.exe ^ --Startup=auto ^ --DisplayName="MyServer" ^ --Description="MyServer" ^ --StartMode=jvm ^ --Classpath="C:\Program Files\prod\Server-3.1.0-distribution.jar;C:\Program Files\prod\Server-3.1.0\lib\*" ^ --StartClass=com.company.server.impl.Server ^ --StartPath="C:\Program Files\prod" ^ --StartParams=start ^ --StartMethod=start ^ --StdOutput=auto ^ --StdError=auto ^ --StopMode=jvm ^ --LogPath="C:\Program Files\prod\logs" ^ --LogPrefix=sds.log ^ --LogLevel=Debug ^ --StdOutput="C:\Program Files\prod\logs\sds_stdout.log" ^ --StdError="c:\Program Files\prod\logs\sds_stderr.log" ^ --Jvm="c:\jdk\32bit\1.6.0_35\jre\bin\java.dll" With this I get "file not found" could not start. any ideas why this line, gives this problem? I have a Server.exe in the same directory. I have also tried ./Server.exe and .\Server.exe When I remove this line from above: --Install=Server.exe ^ I get another error message: *The data area passed to a system call is too small.* Ideally would like to resolve this problem in order to start the service. This is my start.bat .\Server.exe //ES//MyServiceName <= as specified in the install service above Any help would be greatly appreciated, am at my wits end trying to get this to work and have followed closely the examples I was able to find on the web. There are no errors installing the service. I get no errors in the logs indicating the remedy to any solution. I am using the 32bit procrun with a 32 bit JDK , I am pointing to 'java.dll' under my JRE in the installation script. J.V.
