I'm trying to start a Java program as a Windows Service. Googling I've found a install.bat to install and start my service.
As I found on the Internet, I've renamed prunsrv.exe to IdentificationService.exe.
D:\IdentificationService\bin\IdentificationService.exe //IS//IdentificationService
D:\IdentificationService\bin\IdentificationService.exe //US//IdentificationService --Install=D:\IdentificationService\bin\IdentificationService.exe --Description= Identification Service --Jvm="C:\Program Files (x86)\\Diginet\java\bin\server\jvm.dll" --Classpath=D:\IdentificationService\lib --StartMode=jvm --StartClass=br.com..digis.DiginetIdentificationService --StartMethod=start --StartParams=start --StopMode=jvm --StopClass=br.com..digis.DiginetIdentificationService --StopMethod=stop --StopParams=stop --LogPath=D:\IdentificationService\logs --StdOutput=auto --StdError=auto
net start IdentificationService
My problem is that each time I execute IdentificationService it says "Error parsing command line".
I've tried to enclose all parameters by double quotes. Same results.
I've tried to use the original prunsrv.exe withou renaming it. Same results.
What am I missing?