Rakesh Juyal Rakesh Juyal - 26 days ago 23
Java Question

How to create windows service from java jar?

I have an executable JAR file. Is it possible to create a Windows service of that JAR? Actually, I just want to run that on startup, but I don't want to place that JAR file in my startup folder, neither in the registry.

Answer

This article should tell you all you need to know: "Running Java Applications as a Windows Service"; it mentions using "Java Service Wrapper" (there is a community edition called YAJSW)