Tomcat is not running even though JAVA_HOME path is correct

前端 未结 18 2143
情深已故
情深已故 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:48

    I think that your JAVA_HOME should point to

    C:\Program Files\Java\jdk1.6.0_25
    

    instead of

    C:\Program Files\Java\jdk1.6.0_25\bin
    

    That is, without the bin folder.

    UPDATE

    That new error appears to me if I set the JAVA_HOME with the quotes, like you did. Are you using quotation marks? If so, remove them.

提交回复
热议问题