• 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

Have trouble to install Tomcat on Win98

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am pretty new to JSP, after I install Tomcat on Win98, and run startup of tomcat, it gave the following message:
Bad command or file name
Does any one have idea what is wrong with my installation?
The environmet variables which I set up are:
set JAVA_HOME=C:\jdk1.3
set CLASSPATH=C:\JDK1.3\LIB\TOOLS.jar
set TOMCAT_HOME=C:\jakarta-tomcat
PATH c:\jdk1.3\bin;C:\jakarta-tomcat\bin;C:\MSSQL7\BINN;%JAVA_HOME%\bin ";"
Thank you!
 
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Add these to the classpath setting :
C:\jakarta-tomcat\lib\servlet.jar
C:\jakarta-tomcat\lib\jasper.jar
and Your development directory, like ... C:\ServletCode
By the way, the error that You are getting is because You are not starting the tomcat correctly.
Double click on startup.bat and that should do it.
Let us know if You still have problems after doing so. You might run out of environment space.
Vladan


 
Beth Chen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your response!
After I added it to the autoexec and double click the startup.bat, it gave me the same error message, I don't know why? Please advise!
 
Vladan Radovanovic
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well all I can think of is that
SET JAVA_HOME=C:\JDK1.3
SET TOMCAT_HOME=C:\jakarta-tomcat
lines should be added to Your startup.bat and shutdown.bat and not to autoexec.bat
For example add them below the line
if not "%TOMCAT_HOME%" == "" goto start
If you run out of environment space which is very possible
open a dos window, click on properties, then memory and change
"Initial Environment" value to 2816 or more.
Well that should work, hopefully.
Vladan
 
Beth Chen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your advice! I tried it, but it still not work. Do you have any idea where is wrong, do you think i install jdk1.3 wrong?
Could you write the whole steps of installation, so I can follow step by step and do it again.
Thanks for your help!
 
Vladan Radovanovic
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well I really don't know. I assumed that You installed jdk1.3 on Your c drive. Therefore the JAVA_HOME is set to C:\jdk1.3
Here are two sites with detailed instructions on Tomcat.
First is http://www.coreservlets.com find a page where it says how to install Tomcat( I believe in chaper 2).
The other is http://www.webappcabaret.com/javachina/tomcathowto.htm
but you really don't need apache to run servlets and Jsps
Vladan
 
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
this will probably slve the problem it solved mine this was in the tomcat faq in the user manual.
go into the tomcat.bat file and find the following line:
echo tomcat (start^|run^|env^|stop)
delete it. save and run startup.bat it should work.
------------------
I wish there was a button on my monitor to turn up the intellegince.
Theres a button called 'brightness' but it doesn't work
reply
    Bookmark Topic Watch Topic
  • New Topic