RSS Feed for This PostCurrent Article

Open Source Software to start up Java as Windows Service/Unix Daemon

Nowadays Java is used more and more for server application development, and also backend processes for ETL purposes. For this, there is a need to run the Java program as Windows Service in Windows platform, or as a Unix daemon process. The tools described can be used both for Windows and Unix/Linux platforms.

Java Service Wrapper by Tanuki Software

Java Service Wrapper makes it possible to install a Java Application as a Windows NT Service. The scripts provided with the Wrapper also make it very easy to install those same Java Applications as daemon processes on UNIX systems.

The Wrapper correctly handles user log outs under Windows, service dependencies, and the ability to run services which interact with the desktop.

The following platforms are supported.

  • aix – AIX
  • freebsd – FreeBSD
  • hpux, hpux64 – HP-UX, 32 and 64-bit versions.
  • irix – SGI Irix
  • linux – Linux kernels; 2.2.x 2.4.x, 2.6.x. Known to work with Debian and Red Hat, but should work with any distribution. Currently supported on both 32 and 64-bit x86, and 64-bit ppc systems.
  • macosx – Macintosh OS X.
  • osf1 – DEC OSF1.
  • solaris – Sun OS, Solaris 7, 8, 9 and 10. Currently supported on both 32 and 64-bit sparc, and x86 systems.
  • win32 – Windows NT, 2000, XP, and 2003.

Apache Commons Daemon

Commons Daemon initially comes from Tomcat project. It is made of 2 parts. One written in C that makes the interface to the operating system and the other in Java that provides the Daemon API.

win32 and the UNIX like platforms are supported. For win32 platfroms use procrun. For UNIX like platforms use jsvc.

The binaries are provided for

  • freebsd
  • linux
  • macos
  • solaris

Trackback URL

RSS Feed for This Post12 Comment(s)

  1. Adam Sherman | Oct 1, 2007 | Reply

    Have you used either one of these frameworks yet? I’m looking to implement this functionality and am having trouble understanding the difference.


  2. thoughtworks | Oct 1, 2007 | Reply

    I used Java Service wrapper for several projects that I did on Unix platform, and I am quite happy with it.

    Also, I noticed that Java Service Wrapper is used by several famous commerical software (I will not mention the name) but I think it is worth you look into both and try to use them in your project.

  3. itsadok | Oct 8, 2007 | Reply

    I tried these solutions for my Linux servers, and never managed to get it to work quite right. (My fault, of course).
    I ended up using daemontools from – this way it doesn’t matter whether it’s a Java process or a shell script, anything can be a daemon.

  4. Debasish Layek | Dec 14, 2007 | Reply


  5. dipak | Apr 9, 2008 | Reply

    whenever we start a service & log on a user on it.then after logging of the service also gets stopped?Why this happened?

  6. Zane | Jun 9, 2016 | Reply

    The following day when I obtained residence I had the very same problem, everything blowing however no cool air from the vents.

  7. teen | Jun 30, 2016 | Reply

    Then factors equal prizes, which suggests it is possible to earn free cash simply by taking part in poker.

  8. sex toys for females | Jul 2, 2016 | Reply

    Il y a three ou four tournois multi-tables qui démarrent toutes les dix ou quinze minutes rien qu’en no-limit maintain’em.

  9. ass | Jul 8, 2016 | Reply

    $300,000 for lineup you make your first-ever real cash with the css.

  10. beautiful | Jul 8, 2016 | Reply

    Vegas to 30e buyins you may also get began taking part in your.

  11. aunty | Jul 23, 2016 | Reply

    Vous n’avez pas besoin d’un doctorat pour faire beaucoup d’argent en jouant au poker
    en ligne.

  12. masturbate | Jul 27, 2016 | Reply

    PokerStars reçoit une compensation pour le jeu entre de vrais joueurs en prenant un ‘rake’ ou
    un pourcentage sur chaque pot constitué d’argent réel.

1 Trackback(s)

  1. From 小叮当 » Blog Archive » 开源软件启用Java作为Windows Service/Unix Daemon | Sep 21, 2007

RSS Feed for This PostPost a Comment