Sage CRM 2021 R2 Upgrade - Tomcat not installed post upgrade

SUGGESTED

I have upgraded our test crm server from 2018 R2, to 2018 R3, then 2012 R2. The installer hung right at the end of install process (I left it for an hour!) so I was forced to reboot. After the reboot I could not see Tomcat 9 so I ran the "crmservice.bat install" from a command prompt, which installed the tomcat service but when I start the service in the control panel it shows the following error : Error 1067 The process terminated unexpectantly.


When I ran the crmservice install I was greeted with the following  : 

G:\Program Files (x86)\Sage\CRM\CRM\tomcat\bin>crmservice install
SERVICE_CMD=install
Installing the service 'Tomcat9' ...
Using CATALINA_HOME: "G:\Program Files (x86)\Sage\CRM\CRM\tomcat"
Using CATALINA_BASE: "G:\Program Files (x86)\Sage\CRM\CRM\tomcat"
Using JRE_HOME: "#CRM_JRE_PATH#"
Warning: Neither 'server' nor 'client' jvm.dll was found at #CRM_JRE_PATH#.
Using JVM: "auto"
A subdirectory or file G:\Program Files (x86)\Sage\CRM\CRM\tomcat\temp already exists.
The service 'Tomcat9' has been installed.

When I ran the startup.bat I got the following : 
G:\Program Files (x86)\Sage\CRM\CRM\tomcat\bin>startup
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

Can someone advise what I can do to resolve this? It appears that #CRM_JRE_PATH# should be defined and is not?

TIA

Chris