Hm, you can try the following:
a) specify the JVM directly, maybe the auto does not work outside a user session. b) try tu use the prunmsgr to edit the settings instead of the command line c) turn on logging and check the logfile Is the S:\ drive a share? can you try with a local disk as well? (permission) What is the user you use to start the service? try to enter a user account (do this in the service manager so the user gets the required permission). Gruss Bernd Am Wed, 28 Jan 2015 10:31:58 -0500 schrieb "Wong, Nancy" <nancy.w...@spdji.com>: > I have installed my java application as a Windows service using > following: > > prunsrv.exe //IS//SG_FileSync --Install="S:\Automation\prunsrv.exe" > --Jvm=auto --Startup=auto --StartMode jvm > --Classpath="S:\Automation\SG_FileSync.jar" --StartClass=SyncFile > --StartMethod=main > > I can run the program successfully in console mode: > > prunsrv.exe //TS//SG_FileSync > > But I cannot start the service directly in Windows, or using > prunsrv.exe //ES//SG_FileSync or via prunmgr. I get the following > error message: > > The system cannot find the file specified. Failed to start service. > > What am I able to run my application in console mode but not using ES? > > Thanks, > Nancy > > > > ________________________________ > The information contained in this message is intended only for the > recipient, and may be a confidential attorney-client communication or > may otherwise be privileged and confidential and protected from > disclosure. If the reader of this message is not the intended > recipient, or an employee or agent responsible for delivering this > message to the intended recipient, please be aware that any > dissemination or copying of this communication is strictly > prohibited. If you have received this communication in error, please > immediately notify us by replying to the message and deleting it from > your computer. McGraw Hill Financial reserves the right, subject to > applicable local law, to monitor, review and process the content of > any electronic message or information sent to or from McGraw Hill > Financial e-mail addresses without informing the sender or recipient > of the message. By sending electronic message or information to > McGraw Hill Financial e-mail addresses you, as the sender, are > consenting to McGraw Hill Financial processing any of your personal > data therein. > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org