create window service

Posted on 2014-09-05
Last Modified: 2014-09-17

I have a jar file and need to create a installer (exe) when this exe is run it should configure  as a window service?
AS we have a setup (exe) for apache web server and when we run this exe a apache service is installed in the windows?
Question by:Rocking
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 86

Expert Comment

ID: 40306656
Where should the service run - on the same machine as Apache?

Author Comment

ID: 40307136
this is just an example
As we have a setup (exe) for apache web server and when we run this exe a apache service is installed in the windows?

same behaviour (make setup file from jar jar which will run as window service) , i need to create for my jar file whose functioning is to monitor a directory.

I am stuck how to create a window service of that jar file which can run on all windows machine xp,2000,win 7,8
LVL 86

Expert Comment

ID: 40307321
Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations


Author Comment

ID: 40307814
@CEHJ Does not work as window service..

Features/Framework      YAJSW      JSW      ACD      L4J
License      LGPL                           GPL/Commercial      Apache      BSD/MIT
Run as Windows Service                 X      X      X
LVL 86

Accepted Solution

CEHJ earned 500 total points
ID: 40314038 Does not work as window service..
Sorry - i'm not with you. The support table states the opposite ...
LVL 86

Expert Comment

ID: 40327452

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jboss 7.1 start up error 1 85
Html Table Looping (part 2) 5 42
Eclipse with various Java releases 7 92
using executorService 3 25
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question