• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat Problem...

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Ranch Hand
Posts: 338
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Preethi Suryam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Andrew!
It's exactly when i am starting startup.bat
Thanx for any reply!
Preethi.
 
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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?
 
Preethi Suryam
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!
I did the same, but things r not working fine.shall i post my autoexec.bat?
thanx!
preeti.
 
Paul Michael
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Straws are for suckers. Now suck on this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic