"-console new" will open a new console and show all output there. "-console attach" (default) will attach to the current console, usually the command prompt. "-console hide" will not open a console and not show any output. Optional parameter to produce javaw like behavior. Note that you will not see ANY output unless you redirected stdout/stderr or run in debug mode, which logs to a file. Useful for starting graphical applications. Run the application from command without console. Should behave like running the program with java.exe -runapp Run the application from command line for test. Use CTRL-C for stop service, CTRL-BREAK will toggle between pause and continue service. You can simulate and test service stop, pause and continue behavior on the command line by starting with -debug option. Run the application from command line for debugging purposes. Stop the service from command line with NET STOP. This may fail if the service is still running. Will reconfigure from the current configuration file -remove Start the service from command line with NET START. Service is not started immediately, though it will start automatically when NT is rebooted. Install the service in the NT service manager. See here for an examples Command line optionsĬalling jsl.exe without parameters gives an overview of the available options. It contains parameters for both service setup and java application. Don't remove it after you have installed the service. The initialization file is both necessary for setup and running the service. myserver.exe must go along with myserver.ini. You can copy and rename jsl.exe amd jsl.ini to your convenience, just make sure names match. The jsl executable will look for an ini file with the same name as the executable in it's directory. Start it in the NT service manager or by calling NET start "TelnetEcho". Setting the Java cmdline and jrepath should be sufficient Modify the JSL.INI to reflect your desired settings.Copy JSL.EXE (or JSL64.exe) and JSL.INI somewhere to your disk.How To start my java programm as a service Quick start JSL Has been tested with OpenJDK based JDKs like Azul Zulu, and Oracle's JDK. JSL should work with any JVM fom Java 1.2 onwards as the JNI interfaces used to launch the JVM has been standardized by Sun early on. No recent tests have been performed on Windows XP or older. It's simply a utility like java, javap, javac or javah which will launch a Java application through an already an installed JVM.Ħ4bit and 32bit should work with Windows 7 and later (last tested version is Windows 10). Java Service Launcher is a Java Service Wrapper, a small executable used to start 32bit and 64bit JAVA-programs as a Windows Service. Java Service Launcher is a Java Service Wrapper used to start 32bit and 64bit Java-programs as a Windows Service Current Release:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |