Hello. If you have a minute, this is my challenge. I need to move the JDK (Java 9) for my Tomcat 9 service back to Java 8 (due to long term support).
I've read the JDK could "easily" be redirected via tomcat9w.exe. However, I do not have direct or remote access to the server console (Windows).
When I previously performed a simultaneous Tomcat and JDK upgrade, I set JAVA_HOME (temporarily) via ps_tools (remote DOS access to server) and setx (setting, clearing JAVA_HOME).
However, I don't want to go through this reinstall Tomcat service, etc if I can help it. Is there a way to redirect the JDK for an existing Tomcat service sans the Windows program tomcat9w.exe?
EDIT: I just found out that I can remote in to the server. So is tomcat9w.exe, if I change the "Java Virtual Machine" in the wizard Java tab and Save, that should be all right and automatically redirect the service? I presume I stop the service while doing this and start again after? This is scary.
I don't run critical Internet services on Windows and have not for a very, very, very long time. Actually, I haven't run Windows on anything for a very long time.
But a quick check on the Tomcatw.exe documentation at tomcat.apache.org indicates that you can set an execution parameter for tomcayt9w to point its JAVA_HOME to any JDK installed on the machine's filesystem.
However, Tomcatw is apparently designed to be run as a Windows Service, so I'm thinking that you'll actually need to execute the Service Manager control panel snap-in to configure it and that would require that you either have sysadmin provileges or be empowered to direct someone who does.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.
posted 3 weeks ago
hmmm, I was able to install the service in DOS (service.bat) so maybe I have admin access? I guess I'm wondering if anybody has done the "easy" #3 in this link and it automatically redirects...
Hi. I found something interesting in tomcat9w.exe GUI. The Java Virtual Machine field in the Java tab indicates
however, the Manager App for the Tomcat service (via browser) indicates JVM version 188.8.131.52...
I changed the tomcat9w.exe to C:...jdk11...etc... but no effect. It's like the tomcat9w.exe settings are completely ignored.
posted 3 weeks ago
Ok... I found that Tomcat9w.exe appears to be pointing to a previous service I had installed... with the default Tomcat9 service name.
Is it possible to redirect Tomcat9w.exe to my current service name, Tomcat99?
thank you very much.
posted 1 week ago
Hi...for future reference, I copied Tomcat9w.exe and renamed the copy Tomcat99w.exe, to match the service name, and I was able to change the JVM. The service exe file name has to match the Windows service name. Thank you.
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad: