Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting a "bad command or file name" message when trying to run Tomcat

Status
Not open for further replies.

JProg

Programmer
Apr 4, 2002
88
JP
Hi Everyone,

I have just installed Tomcat 4.1.27 onto my Windows 98 computer. After installing the software I set the Java and Catalina variables to their appropriate directories. I also increased the initial environment memory for the startup and shutdown scripts to 4096.

When I double click the startup script a dos window pops up on screen (as is normal) and then several messages occur inside the box. The first of these shows each environemt variable in the form of "Using JAVA_HOME=C:\j2sdk1.4.1_01" etc. After the environment variables are displayed a "Bad command or file name" message is displayed and Tomcat stops responding!

I think that the error message is related to a directory called C:\Tomcat\common\endorsed, as this is also mentioned, however the directory definitely does exist.

If anybody knows what causes a "Bad command or file name" error in Tomcat installs could you please let me know.

Thanks

Regards

David
 
Hi David,
I'm afraid that i don't know how to help you. But I got a question to you. May I know how you set the initial Environment Memory? Where to find this Environment memory? Because I install my tomcat server using WinNT 4.0 Server, I can't find the file to set the Environment memory..

Hope you can help me. Thanks/.
 
JProg :

Add this line in your startup script (or in autoexec.bat)

set PATH=%PATH%;%CATALINA_HOME%\bin

or change the call to the catalina.bat to include full directory path.


Angellin :

You can change the JVM memory size by altering the catalina.bat script. Where it says "java " at the bottom of the script, change it to

"java -Xms256m -Xmx256m"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top