How to Create a Windows Service from Java App

How to create a windows service from java app

I've had some luck with the Java Service Wrapper

How to make java application as windows service?

I think you will have to use the "Java Service Wrapper".

Here is a link that I think can help you with that: http://wrapper.tanukisoftware.com/doc/english/introduction.html#service

Update

Another 2 links:

How to use Java Service Wrapper for our java application

http://wrapper.tanukisoftware.com/doc/english/qna-service.html

Setting my java application as windows service

You can wrapp to exe with launch4j

You can add service based on exe described here

Hope it helps!

deploy java app as a windows service without installing third party software

To the best of my knowledge, there really aren't options out there that get past the requirement for a JVM. See this similar question here: Compiling java source code to native exe

And note that the GCJ mentioned in that post no longer exists nor supports any recent version of java as far as i know.

Then on that page there's a link to this question with a lot of options that DO involve packaging a JVM with your code: How can I convert my Java program to an .exe file?

Create Installer for Java Application Which run as Windows Service

This is an example, using the built-in support for Java from Advanced Installer.

Advanced Installer will generate at the end an MSI that will install your application, a wrapper EXE that can also run and install as a Win32 service. Along that it contains many other options that could be handy, like an automatic updater, etc...



Related Topics



Leave a reply



Submit