Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Using prunsrv to installa executable as windows service (e.g. Proxomitron).

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="85d4ae06f0ef6dd0-444237cc-40bf4703-89edb87d-56ae15d7d37f7219c13cbb30"><ac:plain-text-body><![CDATA[

http://jakarta.apache.org/commons/launcher/images/launcher-logo-white.png

[http://jakarta.apache.org/commons/launcher/ Commons-Launcher] is designed to be a cross platform Java application launcher. It eliminates the need for a batch or shell script to launch a Java class.[BR] A lot of information is available on the [http://jakarta.apache.org/commons/launcher/ Launcher website]. If you don't find the information you need you can always contact us using one of the [http://jakarta.apache.org/site/mail2.html#Commons mailing lists].

]]></ac:plain-text-body></ac:structured-macro>

...

Wiki Markup
The launcher example was originally written and contributed by \[http://wiki.tryphon.org/WikiHome/Alban/FrontPage Alban Peignier\]. You can find the original version and other usefull information on his wiki page http://wiki.tryphon.org/JavaWiki/CommonsLauncher.

FAQ

What is the earliest JRE that Launcher is compatible with?

Is it possible to use the commons daemon to run a executable as Windows service?

Yes, not only java applications can be installed as windows service. Similar to the Srvany.exe tool any other exe can be used.

Sample: Proxomitron (http://www.proxomitron.info/) as windows service

Installation:
prunsrv //IS//PROXO --DisplayName="Proxomitron Proxy" --Description="Proxomitron Web Proxy" --StartImage=c:\proxomitron\proxomitron.exe --StartPath=c:\proxomitron --Type=interactive --LogLevel=DEBUG --LogPath=c:\proxomitron\logs --LogPrefix=procrun.log --Startup=manual --StdOutput=c:\proxomitron\logs\stdout.log --StdError=c:\proxomitron\logs\stderr.log

Uninstallation:
prunsrv //DS//PROXO