Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Have trouble to install Tomcat on Win98  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
  • 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
 
Whose rules are you playing by? This tiny ad doesn't respect those rules:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!