Solved

Tomcat startup.bat error

Posted on 2012-03-28
12
641 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 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
difference of if loops 23 62
Java string replace 11 54
pagenation logic how it is working in my code 1 56
How to determine if a string is a valid SHA value 7 35
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)
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 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…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

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