File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JNLP and Web Start and the fly likes Creating Windows Service in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Creating Windows Service in Java" Watch "Creating Windows Service in Java" New topic

Creating Windows Service in Java

Thennam Pandian
Ranch Hand

Joined: Oct 11, 2005
Posts: 163
Dear feiends,

I want to convert a Application to window service.

please help me
Peer Reynders

Joined: Aug 19, 2005
Posts: 2932
Usually this involves writing a service wrapper (usually in C) that acts as the windows server and interacts with your Java application. There are open source "Java Service Wrappers" available - simply google for them:

Here are some examples:
What is the Java Service Wrapper?
Running Java Applications as a Windows Service By Rick Proctor
Running a Java� 2 Application as an NT Service
How to make a Java NT Service
Java Windows NT Services

Whether these solutions will continue to work on Vista(Codename Longhorn) I don't know (I have my doubts; a new wrapper may be required).

Moving this to the General Computing Forum.
I agree. Here's the link:
subject: Creating Windows Service in Java
It's not a secret anymore!