Tomcat is not finding JAVA_HOME

Discussions

Web tier: servlets, JSP, Web frameworks: Tomcat is not finding JAVA_HOME

  1. Tomcat is not finding JAVA_HOME (2 messages)

    Hi Everyone,

    I have installed Tomcat 4.1.29. I have also installed jdk1.4 and have set the JAVA_HOME accordingly.

    However, when I go to start Tomcat by running catalina.bat, it is giving the following error:

    The JAVA_HOME environment variable is not defined correctly
    This environment variable is needed to run this program
    Using CATALINA_BASE: D:\jakarta-tomcat-4.1.29_svo
    Using CATALINA_HOME: D:\jakarta-tomcat-4.1.29_svo
    Using CATALINA_TMPDIR: D:\jakarta-tomcat-4.1.29_svo\temp
    Using JAVA_HOME: D:\j2sdk1.4.2_10\bin
    '-Dsun.io.useCanonCaches' is not recognized as an internal or external command,
    operable program or batch file.


    Please help,
    Veeraja

    Threaded Messages (2)

  2. Don't use \bin[ Go to top ]

    Try setting your JAVA_HOME to just D:\j2sdk1.4.2_10
  3. Tomcat is not finding JAVA_HOME[ Go to top ]

    Try setting your JAVA_HOME to the JDK root folder.

    e.g. C:\Program Files\Java\jdk1.5.0_06