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 Post21 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. Towing Software Protow by Marr Software | Jan 17, 2016 | Reply

    Equipment Moving, Flat Deck Towing – Hauling 24-7
    Caan Trwnsport Just ablut all Size Mobile Homes Park Model Homes, BC Albertaa – Mobile Home Towing,Travel Trailer
    Transport. This phenomenon sparked the emergence of voucher aggregatiing sites
    which seems to have elped retailers a good deal.
    There three areas oof concern for boaters towing a trailer; meetingg legal
    requirements, considerations made for safety, and the proper maintenance of trailer and tow vehicle.

  7. bán foam | Jan 29, 2016 | Reply

    Admiring the time and energy you put into your site and in depth information you offer.
    It’s good to come across a blog every once
    in a while that isn’t the same outdated rehashed information. Great read!
    I’ve saved your site and I’m adding your RSS feeds to my Google account.

  8. Marylou | Jan 30, 2016 | Reply

    Hi friends, how is all, and what you would like
    to say on the topic of this paragraph, in my view its
    truly remarkable in support of me.

  9. youtube cheats 2014 | Feb 2, 2016 | Reply

    Adrian and Michael Pastore, each 44, of Westfield,
    N. L., have covered this ground using their 10-year-old son Gabriel.

  10. old telugu songs | Feb 3, 2016 | Reply

    whoah this weblog is magnificent i love studying your articles.
    Keep up the great work! You already know, a lot of persons are searching around for this info, you can aid them

  11. nowhere | Feb 6, 2016 | Reply

    ESI International provides Project Management Training Shanghai & Beijing.

    Curbing pollution and emission is as much as desired outcome of operations as
    it is a requirement for better air management and control.
    So it is urgently necessary to signpost the whole human resources globally for environmental education and training that
    they are well-equipped with latest information, knowledge, timely technology and know-how to preserve biodiversity as a whole.

  12. Demetra | Feb 10, 2016 | Reply

    Wow! Finally I got a blog from where I can genuinely take valuable facts regarding my
    study and knowledge.

  13. retail solutions advisors tumblr | Feb 10, 2016 | Reply

    According to Packard, motivational research focused on the unspoken, often unconscious needs of consumers in a bid to
    sell products, Mark Greif writes in The New York Times. In 2005,
    the superstore was fined $11 million for hiring illegal immigrants, a practice that equates to lower manpower costs.
    We hope you found this guide to retail accounting helpful and that it
    contained answers for most of your questions or

  14. subtitulos español series | Feb 12, 2016 | Reply

    Ver Mi casa en París (My Old Lady) (2014) On-line DVDRip 720p
    1080p.. Xvid Audio: Ingles Subtitulos: Español Resolucion: 720×304 Tamaño: 1.44 Gb.

  15. mp3 free music | Feb 13, 2016 | Reply

    I have read some good stuff here. Certainly price bookmarking for revisiting.
    I surprise how mych effort yoou place to create thuis sort of excellent informative site.

  16. agar cheats | Feb 17, 2016 | Reply

    It’s an awesome post in favor of all the online people; they will obtain advantage from it
    I am sure.

  17. attack strategy th6 vs th7 | Feb 18, 2016 | Reply

    Other people may choose to medicate only when absolutely necessary, dealing with the symptoms as they occur.

  18. FYNDA Cebu Home | Mar 5, 2016 | Reply

    I must thank you foor the efforts you have put in penning this website.
    I really hope to see the same high-grade content by you in the future as well.

    In truth, your creative writing abilities has inspird
    me to get my own, personal website now ;)

  19. gel nails | Mar 18, 2016 | Reply

    They’re about as natural as skin care products go and they use
    the entire idea of hypoallergenic, non-harmful products to a completely new phase.
    Thus read on and find out everything you really wanted
    to know about organic skin care. Since gel nails is required to be usually
    cured under UV light, they want more maintenance likewise.

  20. thanh ly phong net | Apr 2, 2016 | Reply

    Hi there to all, it’s in fact a good for me to visit this website, it contains
    valuable Information.

  21. | May 14, 2016 | Reply

    Informal recycling in an underground economy of these
    countries has generated an environmental and well being disaster.

1 Trackback(s)

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

RSS Feed for This PostPost a Comment