File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Have trouble to install Tomcat on Win98 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Have trouble to install Tomcat on Win98" Watch "Have trouble to install Tomcat on Win98" New topic
Author

Have trouble to install Tomcat on Win98

Beth Chen
Greenhorn

Joined: Dec 11, 2000
Posts: 3
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!
Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
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

Joined: Dec 11, 2000
Posts: 3
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

Joined: Mar 20, 2000
Posts: 216
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

Joined: Dec 11, 2000
Posts: 3
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

Joined: Mar 20, 2000
Posts: 216
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
Brett Knapik
Ranch Hand

Joined: Oct 15, 2000
Posts: 255
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


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Have trouble to install Tomcat on Win98