Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install java program as a windows service: Alternative to JavaService? [closed]

I'd like to install a Java application as a Windows service. I did so successfully a couple of years ago using this Java Service wrapper. Unfortunately, it seems like this tool is not in development anymore and thus no Windows 7 and 64 bit versions are available. I need to install my Java application on Windows 7 and XP machines.

Does anyone know a good alternative?

Edit: I need this for commercial use; the suggested Java Service Wrapper from Tanuki is too expensive.

like image 545
mort Avatar asked Feb 13 '12 14:02

mort


People also ask

How do I run a Java program as a service?

We can do this by passing the daemon-reload command to systemctl. We'll need to run the daemon-reload command each time we modify the unit file. Next, we notice the system reports our service running but disabled. Disabled services will not start automatically when the system boots.


2 Answers

I'm now using WinRun4J - a really nice, lean tool that is easy to configure and handle and usable in commercial applications. Many thanks to assylias, whose comment pointed my in the right direction.

like image 38
mort Avatar answered Sep 17 '22 16:09

mort


Some time ago I used the tanuki project and we were very happy with it. I believe is one of the most popular ones.

There is also YAJSW that is based on tanuki (as I understand ) with a LGPL licence

like image 142
mericano1 Avatar answered Sep 18 '22 16:09

mericano1