What is expected: There is a java web application that runs on tomcat and tomcat runs as a windows service. During the installation of the application, a windows service should be created. The following command is run by the installer to create the service. NB: The installer provides the embedded tomcat.
EmbeddedTomcat/bin/service.bat install
What is happening: The installation process runs fine until the step where windows service should be created.
Java is not installed on the PC
My assumption is as there is no java installed tomcat cannot find JRE as a result the installer cannot run the service.bat install
command to create service.
Is there any way I can show tomcat the JRE location that has been provided? The installation directory looks like the following
App
->Documentation files
->EmbeddedTomcat
->->bin (tomcat folder)
->->classes (web app class files)
->->conf (tomcat folder)
->->java (JRE and JDK)
->->lib (tomcat folder)
->->webapp
->->other tomcat files
I have tried setting JAVA_HOME = C:\Program File\App\EmbeddedTomcat\java\jdk1.8.0_311
JRE_HOME = C:\Program File\App\EmbeddedTomcat\java\jre1.8.0_311
PATH = C:\Program File\App\EmbeddedTomcat\java\jdk1.8.0_311\bin
CATALINA_HOME = C:\Program File\App\EmbeddedTomcat
But didn't work.
Is there any other way it can be done?