When I am trying to run tomcat using startup.bat
I get the following error,
The JAVA_HOME environment variable is not defined correctly
This env
For reference for me with Atlassian's Bamboo the issue was because I had wrapped the command in speech marks
So
SET JRE_HOME="C:\Program Files\Java\jre1.8.0_121"
Was wrong, where as the right version is
SET JRE_HOME=C:\Program Files\Java\jre1.8.0_121
This gave me the error message
Files\Java\jre1.8.0_121"" was unexpected at this time.