Have been using the Juicebox Job Scheduler to run scheduled tasks on my Windows Server box for more than a year. However I need to manually start the scheduler each time I reboot as the scheduler is a Java application. What's the easiest way to make a Java application run as a Windows service? Took a look at commons-daemon but it looks pretty complicated to set up, requiring me to create a Java class even? I found that Windows services are simply a set of registry keys but I couldn't work out how to specify an executable with parameters. I tried this on my test Windows desktop:
c:\Program Files\java\jre7\bin\java -jar C:\Users\Cole B\Desktop\juicebox.war
It didn't work, couldn't access the scheduler web interface after starting a service with that ImagePath definition.
The scheduler is not a desktop GUI application so that should help.
Would it simply be easier to do this if I ran it on Linux instead?