我正在尝试使用WinRun4J将Java应用程序作为Windows服务运行。
我将WinRun4J64c.exe复制到我的应用程序目录中,并将以下service.ini文件放在旁边:
service.class=org.boris.winrun4j.MainService
service.id=MyAPP
service.name=MyAPP
service.description=some description
classpath.1=./lib/*
classpath.2=WinRun4J.jar
[MainService]
class=play.core.server.NettyServer但是如果我用:WinRun4J64c.exe --WinRun4J:RegisterService启动服务,我会得到:
Service control dispatcher error: 1063怎么啦?
发布于 2013-02-13 18:44:59
我没有让它工作,所以我的变通方法是使用Apache Commons Deamon。我使用以下参数执行了包含的prunsrv.exe:
prunsrv.exe install "MeineAnwendung" \
--Install="C:/pfad/zu/prunsrv.exe" \
--JvmOptions=-Dpidfile.path=NUL
--Jvm=auto \
--Startup=auto \
--StartMode=jvm \
--Classpath="c:/irgendwo/anwendung/lib/*;" \
--StartClass=play.core.server.NettyServerhttps://stackoverflow.com/questions/14834063
复制相似问题