...
Navigate to os-print-client directory.
Configure the printer.properties file.
Command to run the program:
java -Dconf=printer.properties -jar os-printer-client-1.1.0.jar
How to Install as service on windows?
A. Create a batch file:
Code Block |
---|
@echo off
cd <PATH-TO-OS-PRINTER-CLIENT-DIR>
java -Dconf=printer.properties -jar os-printer-client-1.1.0.jar >> <PATH-TO-LOG-FILE> 2>&1 |
B. Install as a service
Open command prompt, and run the below command to install it as a service.
Code Block |
---|
sc create "OSPrinterClient" binPath= "<BATCH-FILE-PATH>\start_os_printer_client.bat" |