I wrote a java application on Windows and I produced a JAR file. I want to run this JAR file as windows service without using any wrapper like YAJSW, TanukiSoftware, WinRun4J, Apache Commons Deamon.
When I wrote a java application and produced a JAR file from it, I need to register JAR file as service on Windows, for example, using sc.exe <JAR file path>
or java -jar <JAR file path>
.
I searched on internet very long time but everyone says that you need to use wrapper to run a JAR file as windows service, I don't want that. Because I don't want my java project has some dependencies. I want my java project is dependency free as possible as.
How can I do that? Could you help me about this?