Tomcat is not running even though JAVA_HOME path is correct

前端 未结 18 2216
情深已故
情深已故 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条回答
  •  猫巷女王i
    2020-12-09 17:03

    First Run the tomcat directly through the tomcat /bin folder with 
    startup.bat if running sucessful the set the variable as below sample    
    

    JAVA_HOME value : C:\Program Files\Java\jdk1.6.0_32;

    path: C:\Program Files\Java\jdk1.6.0_32\bin;

    CATALINA_HOME=C:\Program Files\Apache Software Foundation\Apache Tomcat 7.0.27 ;

    PATH=%PATH%;%JAVA_HOME%\bin;%CATALINA_HOME%\bin;

    if needed CLASS_PATH:%CATALINA_HOME%\lib;%JAVA_HOME%\lib;

提交回复
热议问题