0

I have a Windows Service running that is dependent on Java booted up. When I reboot the computer, sometimes Java will take a while to boot up. The Windows Service will attempt to start, but fail since Java has not booted up yet. Then I need to manually start the service myself.

Can I add a dependency on a Windows Service to wait for Java to boot?

Josh
  • 1
  • It would help if you told us exactly what the service is. Also, as TomTom has said, Java is not a service. So you must mean that there is a Java application that needs to start. – McITGuy Jun 12 '18 at 16:47

2 Answers2

0

Given that Java is a runtime, not a service, your request makes exactly zero sense. Java does not start late or something, It does not start at all - not in a way that would make you dependent on waiting.

Now, there may be another service written in Java that you have to wait for - that is what service dependencies are for.

TomTom
  • 50,857
  • 7
  • 52
  • 134
0

@Kip gave this solution in other post.

The link is this

sc config [service name] depend= <Dependencies(separated by / (forward slash))>
mortueta
  • 1
  • 1