我使用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.".
专家,如果我在这里做错了什么,请指导我。
提前致谢。