Launching and Controlling Your Application (Windows) |
On Windows, it is possible to run a Java application either as a desktop application, or as a Windows Service in the background. In the case of a Service, the Wrapper needs to be able to be installed, removed, started, stopped, have its status queried, etc. Depending on whether the application has a GUI or is meant to be run in a command window also determines how it will be run. Below are the different methods to start the Wrapper:
|
Dedicated Batch Files |
|||||||||||||||||||||||||||||||||
On Windows systems, the most common way to launch the Wrapper is to make use of dedicated batch files which perform each action to control the Wrapper. This makes it possible for the end user to double click on the batch file icons or set up links in menus.
|
Command-Based Batch File |
|||||||||||||||||||
Some applications which have been ported over from UNIX-based operating systems may work better with a UNIX-style command script to control the service. The Command-Based batch file combines all of the functionality of the individual dedicated batch files into a single file, which takes a command as a parameter.
|
Standalone Binary |
||||||||||||||||||||||||||||||
The Java Service Wrapper can also be run directly without making use of a batch file.
|
Reference: Launching your application with the Wrapper |
[Windows]
[Linux / Unix]
[Common] |