Solved

Tomcat startup.bat error

Posted on 2012-03-28
12
644 Views
Last Modified: 2012-03-28
I am running:

C:\>Program Files\Apache Software Foundation\Tomcat 5.0\bin\startup.bat
'Program' is not recognized as an internal or external command,
operable program or batch file.

I suspect my envrionment setting is not correct. This is what I have for my local environment settings:
:
CATALINA_HOME
C:\Program Files\Apache Software Foundation\Tomcat 5.0\

CLASSPATH
C:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\;C:\j2sdk1.4.2_01\bin

JAVA_HOME
C:\j2sdk1.4.2_01

PATH
C:\j2sdk1.4.2_01\bin

See the attached images for environment setting and file explorer showing additional information. System settings not available for me to edit.

Thank you
EnvironmentSttings.bmp
Startup-bat.bmp
0
Comment
Question by:Mike Eghtebas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 3
  • 3
12 Comments
 
LVL 47

Accepted Solution

by:
for_yan earned 400 total points
ID: 37777318
you rather open dos command line ands go to the folder where your startup.bat is stitiing
and type

startup.bat in the commad line - you'll see at what point the eroor is happening and post it
0
 
LVL 34

Author Comment

by:Mike Eghtebas
ID: 37777405
brb
0
 
LVL 34

Author Comment

by:Mike Eghtebas
ID: 37777448
C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin>startup.bat
Using CATALINA_BASE:   C:\Program Files\Apache Software Foundation\Tomcat 5.0\
Using CATALINA_HOME:   C:\Program Files\Apache Software Foundation\Tomcat 5.0\
Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Tomcat 5.0\\t
emp
Using JAVA_HOME:       C:\j2sdk1.4.2_01
C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin>

I guess it is runing ok then.

I will try to shut down and try http://localhost/8080 and then start up and do the same.

brb
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 27

Assisted Solution

by:rrz
rrz earned 100 total points
ID: 37777469
For your convenience, I suggest that you right-click on the startup.bat file and select "Create Shortcut". Move that shortcut onto your desktop and click on it when you want to start Tomcat.
0
 
LVL 34

Author Comment

by:Mike Eghtebas
ID: 37777479
shut down has one error:

C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin>shutdown.bat
Using CATALINA_BASE:   C:\Program Files\Apache Software Foundation\Tomcat 5.0\
Using CATALINA_HOME:   C:\Program Files\Apache Software Foundation\Tomcat 5.0\
Using CATALINA_TMPDIR: C:\Program Files\Apache Software Foundation\Tomcat 5.0\\t
emp
Using JAVA_HOME:       C:\j2sdk1.4.2_01
Exception in thread "main" java.lang.NoClassDefFoundError: Files\Apache
C:\Program Files\Apache Software Foundation\Tomcat 5.0\bin>

Which is not an issue now.
0
 
LVL 27

Expert Comment

by:rrz
ID: 37777489
eghtebas,  did that solution for your last question really work ?
Didn't you still get the error ?
CarBean cannot be resolved to a type
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37777576
So it is working fine ?
0
 
LVL 27

Expert Comment

by:rrz
ID: 37777919
If you don't like my first suggestion above here, then you can do it your way by using quotes around the path. The spaces are the problem.  
C:\>"Program Files\Apache Software Foundation\Tomcat 5.0\bin\startup.bat"

Open in new window

0
 
LVL 34

Author Comment

by:Mike Eghtebas
ID: 37778229
All I needed was some setup changes our it applied and it is working now.
0
 
LVL 34

Author Comment

by:Mike Eghtebas
ID: 37778237
I will close the question this evening with additional information.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 37778241
Good, it works for you.
0
 
LVL 34

Author Comment

by:Mike Eghtebas
ID: 37780401
To all,

In fact startup.bat or shutdown.bat were not my problem. The issue was I couldn't run some jsp file typed directly from a book.

In order for me to figure this out (suspecting some environment variables are not correctly set up) I was checking startup.bat or shutdown.bat to see if they work or not. This was to gather evidences what works and what doesn't work.

Lastly, IT department were involved and did some changes to the system path (details not revealed to me). Finally my jsp files work and that is what mostly mattered to me.

 rrz@871311,
re> For your convenience, I suggest that you right-click on the startup.bat file and select "Create Shortcut". Move that shortcut onto your desktop and click on it when you want to start Tomcat.

This is a fine idea and I appreciate for sharing this. But it is a side issue.

Regards,

Mike
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

696 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