4

I am creating and executable of a java app with launch4j. How can i configure it to be loaded as a windows service?

With Jsmooth i can set the wrapper but i dont know if this can be done in launch4j

Jayan
  • 18,003
  • 15
  • 89
  • 143
Cesar
  • 1,610
  • 2
  • 16
  • 42

2 Answers2

0

In this comparison it looks like "Run as Windows Service" can't be done with launch4j: http://yajsw.sourceforge.net/#mozTocId284533

You can do it with other programs like: Java Service Wrapper, Apache Commons Daemon...

Danielle
  • 860
  • 10
  • 13
0

Java JAR executable can be converted to the exe file (for instance, with launch4j). Exe file can be launched as a windows service

sc create “My new service” bin path= “D:\FinalProduct\finalProduct.exe” start= auto

Additional information

Poliakoff
  • 1,592
  • 1
  • 21
  • 40