CATALINA_HOME environmental variable is not defined correctly

前端 未结 9 1024
野的像风
野的像风 2020-12-13 04:25

I installed Apache Tomcat 6.0 to a C:/Program Files folder and I set the environmental variables JAVA_HOME and CATALINA_HOME, but when

相关标签:
9条回答
  • 2020-12-13 04:37

    Please care to remove the semi colon at the end of defining user variables such as JAVA_HOME, CATALINA_HOME

    0 讨论(0)
  • 2020-12-13 04:38

    I have got the same problem, I copied the path location of JRE_HOME

    JRE_Home= "C:Progra******** ;"

    Here i have entered Semicolon which we should not , I removed it, then Tomcat Started successfully .

    So Semicolon must be removed at the end after setting path JRE_HOME or JAVA_HOME or CATALINA_HOME .

    0 讨论(0)
  • 2020-12-13 04:42
    set JAVA_HOME :C:\Program Files\Java\jdk1.6.0_26
    CLASSPATH :C:\Program Files\Java\jdk1.6.0_26\bin
    CATALINA_HOME : C:\Program Files\apache-tomcat-6.0.35
    
    0 讨论(0)
  • 2020-12-13 04:42

    Open up your catalina.bat / catalina.sh .. and check for CATALINA_HOME , this could have been hardcoded if you have copied Tomcat from somewhere.

    0 讨论(0)
  • 2020-12-13 04:43

    You also need to set the JAVA_HOME variable to point to the JDK, not JRE. Tomcat must know were Java is installed. It needs the JDK. In the end restart computer.

    https://serverfault.com/questions/579159/the-catalina-home-environment-variable-is-not-defined-correctly-this-environment

    0 讨论(0)
  • 2020-12-13 04:48

    At first you have to mention tomcat up to tomcat's version refer below

    CATALINA_HOME: C:\Program Files\apache-tomcat-6.0.35; then set CLASSPATH variable to

    CLASSPATH : C:\Program Files\apache-tomcat-6.0.35\lib;

    then finally edit path variable to PATH: .;%CATALINA_HOME%\bin;

    NOTE: a semicolon(;) must be put at the end of each and every variable.

    0 讨论(0)
提交回复
热议问题