| Author |
Running java applications as Windows Service
|
Arsalan Madjd
Greenhorn
Joined: Feb 21, 2001
Posts: 10
|
|
Hi, Could anybody tell me how to convert and run a Java application as Windows service(Windows 2000 or xp)? I know there are commerical products out there to handle this but I was wondering if there is a standard procedure for that. Thanks, Arsalan
|
 |
Donny Nadolny
Ranch Hand
Joined: Mar 05, 2003
Posts: 32
|
|
|
You could use JNI to write a wrapper for your application, and have that wrapper run as a service. I believe that should have the same effect.
|
- Donny Nadolny<br />The pen is mightier than the sword, and considerably easier to write with.
|
 |
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
|
|
|
There are several libraries available to do exactly that easily. http://www.google.com/search?q?java+nt+service should give you plenty resources on the topic
|
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
|
 |
Arsalan Madjd
Greenhorn
Joined: Feb 21, 2001
Posts: 10
|
|
|
Thanks for the responses. I will search google some more and will try JNI if I have to.
|
 |
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
|
|
|
It's been a year, but I once found a few free tools for doing this.
|
[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
|
 |
Aaron Hanson
Greenhorn
Joined: Aug 26, 2003
Posts: 15
|
|
A previous coworker of mine found this one: http://wrapper.tanukisoftware.org/ We use it for one of our applications and it has worked just fine.
|
 |
 |
|
|
subject: Running java applications as Windows Service
|
|
|