Tomcat does not start

Posted on 2004-10-26
Last Modified: 2013-11-24
Hi experts ,

I have this terrible problem configuring Apache Tomcat 4.1 on my Windows xp machine.

ok ..  here is the problem.

Tomcat is stored in c:\Program Files\Apache Group\Tomcat 4.1

when i run startup from c:\Program Files\Apache Group\Tomcat 4.1,  it pops up the error message ' Windows cannot find : "" ' .

i searched for "" , and found that it is a line of code in "catalina.bat".

These are all the environment variables i have :

variable                                           value

CATALINA_HOME                       set CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1\bin
JAVA_HOME                              set JAVA_HOME=C:\j2sdk1.4.2_06\bin
PATH                                        PATH=%PATH%c:\j2sdk1.4.2_06\bin;%CATALINA_HOME%\bin

could you please help me out..

Question by:jaggernat
    LVL 86

    Expert Comment

    *_HOME should not end in bin
    LVL 8

    Assisted Solution

    Please dont cross-post.

    your environment variables should be

    CATALINA_HOME                       set CATALINA_HOME=C:\Program Files\Apache Group\Tomcat 4.1
    JAVA_HOME                              set JAVA_HOME=C:\j2sdk1.4.2_06

    dont add the bin directory in your CATALINA_HOME and JAVA_HOME variables
    LVL 86

    Assisted Solution

    set JAVA_HOME=C:\j2sdk1.4.2_06
    set CATALINA_HOME="C:\Program Files\Apache Group\Tomcat 4.1"
    LVL 15

    Accepted Solution

    Try downloading the 5.0 version thats much better and you can just run it in dos.
    Here are the things you need to do :

    1. Click Start
    2. Click Run
    3. Type Command
    4. Press Ok
    5. Go to the base directory where the startup.bat is :

    6. Type : SET JAVA_HOME=C:\JAVAC
    7. Type : startup.bat
    8. Tomcat window will show and start
    9. You can now test it through the browser
    0. In your IE type : http://localhost:8080

    As you can see its a lot of job to start it manually. You can use Netbeans because it has a Tomcat in it.
    When you run a servlet or jsp in Netbeans it will automatically run Tomcat.

    You can also use other Java Webserver like Jetty its also very good. Let me know if you have any other
    problem, hope this one helps . . .

    LVL 15

    Expert Comment

    Sorry SET JAVA_HOME=C:\JAVAC is assuming that you have renamed C:\j2sdk1.4.2_06\ to C:\JAVAC to avoid
    any confutions but if you dont like it you can still do it like :

    SET JAVA_HOME=C:\j2sdk1.4.2_06
    LVL 86

    Expert Comment

    LVL 15

    Expert Comment


    Always Glad To Help . . .
    Friend : Javatm

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    Title # Comments Views Activity
    what is spring 3 29
    squareUp  challenge 22 67
    Problem to setup 18 55
    java JDK Download 7 36
    INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Video by: Michael
    Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

    884 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now