Closed wushikj closed 3 years ago
I use this command ,is not work:
PS C:\temp\java_demo> .\shawl.exe run --name a --cwd C:\temp\java_demo -- "java -jar scheduler-demo-2.1.0.RELEASE.jar"```
report:
Failed to run the service:
Winapi(
Os {
code: 1063,
kind: Other,
message: "The service process cannot connect to the service controller",
},
)
shawl run
isn't meant to be used directly from the console like that. You would configure a service that executes the shawl run
command instead. If you try to run it in a normal interactive user session, it will fail.
Yes! If you have a self-executing JAR, then Shawl can run it just like any other program. For other JARs, you can configure Shawl to run
java -jar your-app.jar
.