使用Procrun在Windows Server 2008上的Jetty服务:缺lessImageFile服务

Xe希望在Windows 2008 Server虚拟机上运行Jetty作为服务。 因此,我使用Apacke Procrun将Jettyconfiguration为Windows服务,下面是简短说明: https ://stackoverflow.com/questions/2094429/running-jetty-7-as-windows-service

在具有pipe理权限的Windows 7机器上,一切都像魅力一样。 不幸的是,当在VM上使用JettyService.exe // TS来testing服务时,出现以下错误:-Service“JettyService”缺lessImageFile [错误] ServiceStart返回1

进一步的观察: – 服务显示在Windows的服务列表中。 当试图启动它,我得到一个“文件未find”的错误。 ProcrunconfigurationGUI不显示任何服务细节,虽然它在我的本地版本上。 看起来好像该服务不存在。 无论如何,当试图再次定义相同的服务时,我得到一个消息,说明一个服务已经被定义了。

不幸的是,似乎没有太多人遇到这个问题。 任何帮助或build议将不胜感激! 这可能是关于服务的权限?

要解决这个问题,只需在引用目标时加上引号即可,如https://stackoverflow.com/questions/2094429/running-jetty-7-as-windows-service

bin\JettyService //IS//JettyService --DisplayName="Jetty Service" --Install="C:\java\jetty\jetty-distribution-7.4.2.v20110526\bin\JettyService.exe"