Tomcat does not start

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..

LVL 10
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

*_HOME should not end in bin
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
set JAVA_HOME=C:\j2sdk1.4.2_06
set CATALINA_HOME="C:\Program Files\Apache Group\Tomcat 4.1"
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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 :

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 . . .


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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

Always Glad To Help . . .
Friend : Javatm
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.