• 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

problem starting up tomcat

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
i just installed tomcat 5.0.16 from an .exe file. when i try to start it from the startup batch file , i get the following error msg in my DOS prompt:
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: C:\j2sdk1.4.1_03
Bad command or file name
I have put sdk, jre in the class path and specifed my JAVA_HOME as well..i checked it from DOS prompt by echo%JAVA_HOME% and it gives me the right path.
Im using windows ME..could someone please point me in the right direction. I want to learn JSP and Servlets. So, this is really essential. THanks a lot for your help.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. Execute start.bat from a command window that has CATALINA_HOME/bin as the current directory.
2. You may want to REM out the @echo off statement at the start of the start.bat file so as to see which command is generating that error.
(Windows ME! ieeeee - can you execute the examples that come with the SDK?)
Bill
 
Jon Summers
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i did execute start.bat from the command and still its giving me the same problem.im gonna tell you all i did. firstly, downloaded exe version and then start->run->msconfig->environment->add new. set variable name to JAVA_HOME and gave its path. my sdk and JRE are in PATH variable. im still getting the same error:
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: C:\j2sdk1.4.1_03
Bad command or file name
any more suggestions...Your help is greatly appreciated
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to see the exact command that WinME could not interpret as a command or batch - therefore I suggest you.
1. make the first line of start.bat and catalina.bat = REM @echo off
2. in start.bat change the line:
call "%EXECUTABLE%" start %CMD_LINE_ARGS%
change start to ^ run so it will continue in the same window
Right off hand, I bet your path is not finding Java correctly. What happens if you type: java -version
at the command line.
Bill
 
Jon Summers
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello William,
Thanks alot for your help. I edited start.bat and catalina.bat. It didn't show me any errors instead tomcat started running smoothly. Thanks again.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic