aspose file tools
The moose likes Java in General and the fly likes Running java applications as Windows Service Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Running java applications as Windows Service" Watch "Running java applications as Windows Service" New topic
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Running java applications as Windows Service
 
Similar Threads
Windows Service for Java
how can we write memory resident program
Windows Service
Win service with inet connection
Starting a java process via servlet