aspose file tools*
The moose likes Servlets and the fly likes Tomcat Problem... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat Problem..." Watch "Tomcat Problem..." New topic
Author

Tomcat Problem...

Preethi Suryam
Ranch Hand

Joined: Nov 17, 2000
Posts: 92
Hi!
I am working with Tomcat for the first time.I have installed Tomcat 3.1.1 version.Have set classpath to
c:\tomcat\lib\servlet.jar
c:\tomcat\lib\jasper.jar
have also
set JAVA_HOME=c:\jdk1.3.1
set TOMCAT_HOME=c:\tomcat
"I am getting Bad command or file name"
could some one help me track the error....
Regards!
Preethi.

Andrew Shafer
Ranch Hand

Joined: Jan 19, 2001
Posts: 338

When you do what?
That usually means you are trying to use commands that aren't in your path? Are you trying to start Tomcat?
If so, you either need to goto the bin directory or add C:\tomcat\bin to your path.


!_I_Know_Kung_Fu_!
Preethi Suryam
Ranch Hand

Joined: Nov 17, 2000
Posts: 92
Hi Andrew!
It's exactly when i am starting startup.bat
Thanx for any reply!
Preethi.
ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
Sorry to digress a little. Just to say that you should be at least running Tomcat 3.2.3 right now. This is the 'production' quality version but you can get Tomcat 4.XX if you want, which is really for experts who are testing future versions.


In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
Paul Michael
Ranch Hand

Joined: Jul 02, 2001
Posts: 697
Originally posted by Preethi Suryam:
Hi!
I am working with Tomcat for the first time.I have installed Tomcat 3.1.1 version.Have set classpath to
c:\tomcat\lib\servlet.jar
c:\tomcat\lib\jasper.jar

this part isn't necessary... the tomcat.bat file automatically adds the jar files in your c:\tomcat\lib\ directory to your classpath i think...
Preethi did you include the "JAVA_HOME"\bin directory to your PATH?


SCJP 1.2 (89%), SCWCD 1.3 (94%), IBM 486 (90%), SCJA Beta (96%), SCEA (91% / 77%), SCEA 5 P1 (77%), SCBCD 5 (85%)
Preethi Suryam
Ranch Hand

Joined: Nov 17, 2000
Posts: 92
Hi Paul!
I have added only JAVA_HOME=c:\jdk1.3.1 to my path.How do i add "JAVA_HOME"\bin to my path.should i add it to my classpath?
Regards!
Preethi.
[This message has been edited by Preethi Suryam (edited September 12, 2001).]
[This message has been edited by Preethi Suryam (edited September 12, 2001).]
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

If you are using Win98, you need to look into either startup.bat or tomcat.bat and remove the word "call" from whichever file it's in (I forget which one).

Call is an NT command, which 98 won't recognize (and give you 'bad command or file name' )
Preethi Suryam
Ranch Hand

Joined: Nov 17, 2000
Posts: 92
Hi!
I am using win98.I din't find any word like "call" in any of the files.I have checked the word in Tomcat.java,startup.java
Thanx for any reply!
Preethi
Ambrose R Tati
Greenhorn

Joined: Nov 06, 2000
Posts: 21
I had exactly the same problem.
Im running Tomcat3.2.3/Win98/Java1.3.
1) I ensured that Java_Home and Tomcat_Home were not set in my autoexec.bat file.
2) Fired up a MS-DOS window and typed: set Java_Home=d:\java2
(this is my java1.3 install directory)
3) In the same MS-DOS window went to my
<Tomcat3.2.3 Install dir>\bin and typed startup
It works fine.
Hope it works for you too. Good luck.
Ambrose Tati
Preethi Suryam
Ranch Hand

Joined: Nov 17, 2000
Posts: 92
Hi!
I did the same, but things r not working fine.shall i post my autoexec.bat?
thanx!
preeti.
Paul Michael
Ranch Hand

Joined: Jul 02, 2001
Posts: 697
Originally posted by Preethi Suryam:
Hi Paul!
I have added only JAVA_HOME=c:\jdk1.3.1 to my path.How do i add "JAVA_HOME"\bin to my path.should i add it to my classpath?

i thought that it might work but i tried removing my
set PATH=C:\jdk1.3\bin
from my autoexec.bat and restarted my system but my tomcat still worked fine... like most of you guys here, im also new to tomcat and i've had the same "bad command or file name" problem before. i just cant remember how we were able to fix it. by the way do you have JRE installed? if not, you might want to try adding the tools.jar to your CLASSPATH... hope this works!
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

In startup.bat, just before the line :eof (so it's the second last line with words on it)

call "%TOMCAT_HOME%\bin\tomcat" start %1 %2 %3 %4 %5 %6 %7 %8 %9

remove the word call, and see what happens.
Preethi Suryam
Ranch Hand

Joined: Nov 17, 2000
Posts: 92
Hi Mike!
I have removed the call command from startup.bat but things seem to be the same mike.i am getting the same error "Bad command or file name" help me out to work successfully with tomcat.
Regards!
Preeti
shilpa kulkarni
Ranch Hand

Joined: Jun 07, 2000
Posts: 87
I had the same problem. I discovered that the path was not getting set because of low memory.
Open a dos prompt and under properties go to the memory tab and increase the size of 'initial environment' memory.
Then run ur .bat file for tomcat.
It worked for me, hope this helps u.
Shilpa.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Problem...