I have one Java application and I want that it should run as window services. I have chosen YAJSW for this. I have run its GetConfig.bat with my Java process ID and it has generated it config file. I have placed the User name and password in the config file and run the runConsole.bat. My jar file run successfully and I have seen in the log file of JAJSW which I have print out in my application. Now when I run installService.bat file. It successfully generate service but when I go the window services and run the that window service it show the error : "error 1053: The service did not respond to the start or control request in the timely fashion"
Can someone help me, how can I solve this problem.
Maybe the issue is related to have both, Java 7 and Java 8. Please check this answer https://stackoverflow.com/a/37047073/1666929