OS :Windows Server 2019
Issue: Services
Hi wondering if you could assist me with the following error, i have a .jar file that runs POST services i need that jar file to run as a service on Microsoft server 2019, then I have the .exe but when I create a new service "sc \SERVER Service_Name path=C:\XXX" and then try to run the service from Services console said
the "service Name" on the Local Computer started and then stopped
just to add the jar file run fine doing manually "java -jar XXXX.jar" and I'm adding the event log where the file is properly located, i changed the location several times
Event Log :
Service cannot be started. System.ComponentModel.Win32Exception (0x80004005): The system cannot find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at winsw.Util.ProcessHelper.StartProcessAndCallbackForExit(Process processToStart, String executable, String arguments, Dictionary2 envVars, String workingDirectory, Nullable
1 priority, ProcessCompletionCallback callback, Boolean redirectStdin, LogHandler logHandler)
at winsw.WrapperService.StartProcess(Process processToStart, String arguments, String executable, LogHandler logHandler, Boolean redirectStdin)
at winsw.WrapperService.OnStart(String[] _)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object state)