Hello. If you have a minute, I successfully ran the service.bat install (sans setting any JAVA_HOME or JRE_HOME) several months ago and am trying to retrace my steps. I set the jvm.dll path in Tomcat9w.
However, I tried service.bat install today, with the same Tomcat9w path, but I am getting error can't find JAVA_HOME or JRE_HOME. It doesn't appear to care about Tomcat9w.
Is there a switch I'm missing or something to get service.bat to look at Tomcat9w?
Can you launch Java from the command line? I would think that any bat file would need either Java in the PATH variable or the JAVA_HOME variable set.
All things are lawful, but not all things are profitable.
posted 1 year ago
Hi, Knute. Thank you. Yeah, I was reviewing service.bat and it does look for those variables. However, the last time I did a Tomcat service install in May, I know I didn't set any environment variables. There are none in there right now. I also read in the Tomcat documentation that a service install doesn't require environment variables.
Do you know if there is a way to run service.bat install with additional command line args for path?
I tried this...no errors but I don't see the service in the Windows Services window....