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 Install Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Install Tomcat" Watch "Install Tomcat" New topic
Author

Install Tomcat

ricky gonzalez
Ranch Hand

Joined: Jun 30, 2000
Posts: 167
Hi, I have a problem installing Tomcat. Following the instruction given at
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-ug.html#just_jserv
When I tried to set the environment variable to the root directory of JDK and add Java interpreter to my path
set JAVA_HOME=c:/jdk1.2
set PATH=%PATH%;%JAVA_HOME%\bin
I get a message "Too many parameters". Does anyone know what I did wrong?
Thanks in advance!
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Hi:
I did have this problem and resolved it.
set JAVA_HOME=c:/jdk1.2
Do you mean JAVA_HOME=C:\jdk1.2 ?
Try it out this may be the problem.
regds.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
ricky gonzalez
Ranch Hand

Joined: Jun 30, 2000
Posts: 167
Thanks satya! I did try using backward slash, and the result is the same. Too many parameters. How did you resolve it? What parameters did I input? I am really terrible at DOS command. Thanks!
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
I am really terrible at DOS command.
well....u have my company there....
so, when you get this too many parameters
msg, what is the PATH? Also if possible could you
post your autoexec.bat file esp the PATH settings.
That may help me understand what u were trying to do.
set PATH=%PATH%;%JAVA_HOME%\bin
The reason I ask is I want to look at the current
PATH before your abv stmt gets exec.
In my case, I had two ; something like ;; in the
PATH and so it said too many parameters. watch out for such a thing.

regds.
- satya
ricky gonzalez
Ranch Hand

Joined: Jun 30, 2000
Posts: 167
Thank you satya! The following is my autoexec.bat:
set PATH=C:\PROGRA~1\ASTWORKS\MM\SPT;C:\PROGRA~1\ASTWORKS\HELPFI~1;%PATH%;"C:\DEV-C++\Bin\";C:\JDK1.3\BIN;
set PATH=%PATH%;%JAVA_HOME%\bin
set CLASSPATH=.;servlet_dir/servlet.jar;servlet_dir/jsp.jar
set TOMCAT_HOME=c:\tomcat
I tried to completely follow Tomcat's instructions but maybe I left out some details...
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
Originally posted by ricky gonzalez:
The following is my autoexec.bat:
set PATH=C:\PROGRA~1\ASTWORKS\MM\SPT;C:\PROGRA~1\ASTWORKS\HELPFI~1;%PATH%;"C:\DEV-C++\Bin\";C:\JDK1.3\BIN;

I see the problem
Get rid of the ; at the end of the abv stmt
in you autoexec.bat. Give it a shot and let me know.
Trust me, Tomcat is a good freely avail. piece of
software. And lot of companies use it even for commercial
purposes. Each month there are abt 10000++ downloads.
IMO, it helps to take the pain and learn how to use it.
After much hardwork, I am now able to use it and am
abt it.
Regds.
- satya
 
jQuery in Action, 2nd edition
 
subject: Install Tomcat
 
Similar Threads
Tomcat Configuration
Info Request: Install Apache w/ Tomcat
Here is the procedure to install TOMCAT :)
How do I let my IIS and Tomcat using the same port?
how to run jsp in IIS URGENT !!!