I searched in google what this status code means. All I could get is this code will be returned when the ‘process’ process.exitValue() in your java svc exits abnormally.
Our OS is windows 2003 server.
The same command when given in Start/Run works absolutely fine but when given to the svc returns a code of 128.
extended settings looks fine.
Could you pls let me know if I am missing some thing here.
Keep in mind that when executing a command via this mechanism, there is no path and no environment variables. If you’re depending on those you may need to adjust. Also, you may need to invoke command.exe instead of the program directly. There is material on the web that covers some of this. It can be more involved than one might expect it to be.
We could resolve the issue finally…
We noticed that the system env variables were set up differently in dev to that of TEST env.
We changed the env variables and deleted JAVA_HOME path.
After the reboot, the issue is resolved and the java svc is working as expected.
At this point I do not tell wht exactly went wrong. We are investigating further to understand the cause of the issue as we did not do any changes to the system recently.
Your swift response gave us so much confidence that we could solve this problem despite having minimal java knowledge.