0

我尝试在创建我的 .bat 脚本并运行它后使用Procrun创建一个作为 Windows 服务运行的 JavaFX 项目myService 添加到服务列表但是当我尝试启动它时收到一条 错误消息,这是我的 install_service 脚本

 "prunsrv.exe" //IS//VillRomaService^
--DisplayName=VillRomaService^
--Description="This service help dotnet desktop application database sync data with new website"^
--Install="prunsrv.exe"^
--Jvm="C:\Program Files\Java\jdk-13.0.2\bin\server\jvm.dll" ^
--StartMode=jvm^
--StopMode=jvm^
--StartClass=com.example.demobgservice.VillaRomaController^
--Startup=auto^
--Classpath=C:\Users\GeniusPC\Documents\GitHub\demo-bg-service\demo-bg-service-1.0-SNAPSHOT.jar^
--JvmOptions=-XX:+HeapDumpOnOutOfMemoryError^
--StartPath=C:\Users\GeniusPC\Documents\GitHub\demo-bg-service\^
--StdOutput=C:\Users\GeniusPC\Documents\GitHub\demo-bg-service\vill-log\vill-roma-stdout.log^
--StdError=C:\Users\GeniusPC\Documents\GitHub\demo-bg-service\vill-log\vill-roma-sterr.log

我也尝试使用winsw但得到同样的错误。

4

0 回答 0