Solved

Tomcat startup.bat error

Posted on 2012-03-28
12
639 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
  • 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 33

Author Comment

by:Mike Eghtebas
ID: 37777405
brb
0
 
LVL 33

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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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 33

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 33

Author Comment

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

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 33

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
eclipse package explorer vs project explorer view 2 135
more than one jdk and one jre 1 43
How do I remove an object from a 3 27
sql import cannot be resolved jsp 3 24
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

831 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