Link to home
Start Free TrialLog in
Avatar of Mike Eghtebas
Mike EghtebasFlag for United States of America

asked on

Tomcat startup.bat error

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
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mike Eghtebas

ASKER

brb
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
SOLUTION
Avatar of rrz
rrz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
eghtebas,  did that solution for your last question really work ?
Didn't you still get the error ?
CarBean cannot be resolved to a type
So it is working fine ?
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

All I needed was some setup changes our it applied and it is working now.
I will close the question this evening with additional information.
Good, it works for you.
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