java - create windows service from executable JAR file
问题描述
I am trying to create service from JAR file and after some research I was able to create window service using SC
sc create "ServiceName" binPath= "PathToJava.exe -jar PathToJarFile"
but when I tried to start the service it displayed the bellow error
[SC] StartService FAILED 1053:
The service did not respond to the start or control request in a timely fashion.
Can anyone help me out regarding this, any help is valuable
解决方案
推荐阅读
- html - 粘性元素和媒体查询的布局问题
- oracle-apex - 替代oracle apex当前导航菜单中的旧选项卡父集?
- reactjs - this.setState() 不呈现获取的 Firebase 图片
- android - 如何获取一个 api 的结果并使用它在另一个 API 中使用改造进行查询?
- javascript - ORA Spinner 使用 Inquirer.js 在 CLI 上停止
- windows - 应用程序的文件夹
- laravel - 获取没有电子邮件列的用户
- android - 从 Facebook 中的开发人员帐户登录时,范围错误消息无效
- java - 我要求用户输入他的(int)ID,然后我想获取 ID 并将其存储在数组中以继续
- rhel - Redhat 的 RHEL8 相当于“apk add --no-cache gcc musl-dev linux-headers”