I was trying to following the instructions here for running my Spring Boot web service as a windows service. If i point start to org.springframework.boot.loader.JarLauncher then my web service starts & works, but when I try to point to the Bootstrap class I added then I get a "FindClass com/mycompany/Bootstrap failed" message. So prunsrv can find the SpringBoot classes but not my classes.
Any suggestions? Using org.springframework.boot.loader.JarLauncher seems to work fine for starting the windows service but then I can't stop the service normally, I have to kill it in task manager.
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\GMC_TLG_DEV\Parameters\Java]
"Jvm"="E:\\Java\\jre1.8.0_121_32\\bin\\client\\jvm.dll"
"Classpath"="E:\\Apache\\prunsvc\\myspringbootjar.jar"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\GMC_TLG_DEV\Parameters\Start]
"Class"="org.springframework.boot.loader.JarLauncher"
"Mode"="jvm"
"Method"="main"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\GMC_TLG_DEV\Parameters\Start]
"Class"="com.mycompany.Bootstrap"
"Mode"="jvm"
"Method"="start"