Tomcat is not running even though JAVA_HOME path is correct

前端 未结 18 2148
情深已故
情深已故 2020-12-09 16:07

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         


        
18条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-09 16:47

    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.
    

提交回复
热议问题