1. download tomcat.exe and rename it as your designated service name, say PDFConversionStudent.exe
2. Open command prompt, go to the directory and use following command to install it as Window service:
PDFConversionStudent.exe //IS//PDFConversionStudent --Install=E:\project\iviewer\program\pdfConversion\bin\PDFConversionStudent.exe --Description="iMarker Student File PDF Conversion" --Jvm=C:\Sun\SDK\jdk\jre\bin\client\jvm.dll --Classpath=E:\project\iviewer\program\pdfConversion\jar;E:\project\iviewer\program\pdfConversion\jar\iViewerPDFConversion.jar;E:\project\iviewer\program\pdfConversion\jar\sqljdbc4.jar;E:\project\iviewer\program\pdfConversion\jar\log4j-1.2.9.jar;E:\project\iviewer\program\pdfConversion\properties\log4j.properties --StartMode=jvm --StartClass=hk.edu.ouhk.iviewer.process.PDFConversionProcess --StartMethod=windowServiceStudent --StartParams=start --StopMode=jvm --StopClass=hk.edu.ouhk.iviewer.process.PDFConversionProcess --StopMethod=windowServiceStudent --StopParams=stop --LogPath=E:\project\iviewer\program\pdfConversion\logs --StdOutput=auto --StdError=auto
To Update Service
PDFConversionStudent.exe //US//PDFConversionStudent --Description="iMarker Student FilePDF Conversion"
To Remove Installed Service
PDFConversionStudent.exe //DS//PDFConversionStudent
沒有留言:
張貼留言