views:

373

answers:

5

I am having an executable jar file. Is it possible to create windows service of that jar? Actually i just want to run that on startup, but i don't want to place that jar in my startup folder, neither in registry.

+1  A: 

Have a look at this Code Project article.

kgiannakakis
Though it is a manual process but i can go with that too,
Rakesh Juyal
A: 

We use the Tanuki Service Wrapper for that. It's very configurable.

jqno
site is down!! X(
Rakesh Juyal
+2  A: 

This article should tell you all you need to know: "Running Java Applications as a Windows Service"

You can also use "Java Service Wrapper" (there is a community edition)

Adrian
A: 

Tanuki changed license of jsw some time ago, if I was to begin a project, I would use Yet Another Java Service Wrapper, http://yajsw.sourceforge.net/

raticulin
+1  A: 

I've been experimenting with Apache Commons Daemon. It's supports windows (Procrun) and unix (Jsvc). Advanced Installer has a Java Service tutorial with an example project to download. If you get their javaservice.jar running as a windows service you can test it by using "telnet 4444". I used their example because my focus was on getting a java windows service running, not writing java.

mcdon