<service>
<id>vehlocal</id>
<!-- Display name of the service -->
<name>vehlocal</name>
<!-- Service description -->
<description>无锡梦雪批量合格证打印软件,服务提供服务</description>
<executable>%BASE%\jdk_1.8_32\bin\java.exe</executable>
<arguments>-jar "vehlocal-0.0.3.8.10-SNAPSHOT.jar"</arguments>
<!-- 开机启动 -->
<startmode>Automatic</startmode>
<!-- 日志配置 -->
<logpath>%BASE%\log</logpath>
<logmode>rotate</logmode>
</service>
创建一个xml文件 指明jar包位置 以及java的路径等等如图
还有一个文件 反正网盘中 打开黑窗口 sc install 文件名安装就可以了 记得去服务重新运行就可以了
链接: https://pan.baidu.com/s/1DSaFEaTrwCtrB-_9XhZKSg?pwd=hypr 提取码: hypr