#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    4
    Rep Power
    0

    Can't get Tomcat 4.1 started


    When I use startup.bat in the "Tomcat\bin" folder it says:

    The CATALINA_HOME environment variable is not defined correctly.

    In my "autoexe.bat" I have added the lines:

    set JAVA_HOME="D:\Program Files\JSDK1_4_1"
    set CATALINA_HOME="C:\Program Files\Tomcat"

    so I don't know what the problem is.
    Please help, it's driving me nuts!.

    Thanks.
  2. #2
  3. PHP & Java Error Master
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jun 2003
    Location
    My Computer
    Posts
    1,219
    Rep Power
    0
    try putting the enviroment variables manually.

    It's in My Computer > Advanced > Env. Vars
    Make sure TOMCAT_HOME is set as well

    Also, PHP didn't like being in a dir. named with a space. Try C:\tomcat.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    4
    Rep Power
    0
    Ok, that worked, the startup.bat is no longer complaining about the CATALINA_HOME variable. Now he's complaining there's not enough enviroment space.
  6. #4
  7. PHP & Java Error Master
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jun 2003
    Location
    My Computer
    Posts
    1,219
    Rep Power
    0
    well, if you've defined the variables in the autoexec and via my computer, there may be a duplicate issue.
    Not to mention you don't need to define them everytime you start.
    Just enter all 3 where I said above and you should be set.
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    4
    Rep Power
    0
    I'm trying to get Tomcat started in win98 so I can't use "my computer". And I'm using Tomcat 4.1 which uses CATALINA_HOME instead of TOMCAT_HOME.
  10. #6
  11. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    Try running:
    [path\to\java.exe] -jar -Duser.dir="[path\to\tomcat\install]" "[path\to\tomcat\install]\bin\bootstrap.jar" start

    For example:
    C:\j2sdk1.4.1_01\bin\java.exe -jar -Duser.dir="C:\Program Files\Apache Group\Tomcat 4.1" "C:\Program Files\Apache Group\Tomcat 4.1\bin\bootstrap.jar" start

    This should have been created as a shortcut in your startmenu when you installed tomcat.
    -james
  12. #7
  13. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2003
    Posts
    4
    Rep Power
    0
    It works thx
  14. #8
  15. No Profile Picture
    Moderator =(8^(|)
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Feb 2002
    Location
    Sacramento, CA
    Posts
    1,710
    Rep Power
    14
    No problem
    -james

IMN logo majestic logo threadwatch logo seochat tools logo