需要帮助将.exe应用程序作为应在系统启动时启动的Windows服务

时间:2014-11-28 09:38:01

标签: java windows windows-services exe executable-jar

我使用32位SWT库为UI开发了一个Java应用程序并完成了以下操作,      - 通过Install-jammer工具将导出的runnable jar转换为exe应用程序。      - 嵌入式内置32位jre库,无需在服务器中安装java即可运行应用程序。

我使用32位库的原因是在32位和64位Windows机器上运行应用程序。

并且,我通过cmd提示符使用以下命令使我的应用程序成为64位Windows机器中的Windows服务:

sc create demoapp binpath= "path_to_my_app_demoapp.exe" (added successfully in services)

但是,当我尝试通过服务启动我的应用程序时,它会向我显示一条错误消息

"Error 1053: The service did not respond to the start or control request in a timely fashion.".

我也关注了此网址http://www.gfi.com/support/products/gfi-archiver/Error-The-service-did-not-respond-in-a-timely-fashion-ServicesPipeTimeout-when-attempting-when-attempting-to-start-stop-or-pause-a-service,但没有帮助。

专家,如果我在这里做错了什么,请指导我。

提前致谢。

0 个答案:

没有答案