This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Servlets and the fly likes Tomcat Instructions explained Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Tomcat Instructions explained" Watch "Tomcat Instructions explained" New topic
Author

Tomcat Instructions explained

Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Hi:
I am attempting to post the tomcat installation and
application instructions. Pl. feel free to fill-in
or correct.
The foll. instructions apply for jdk1.2.2 in the C:\
dir.
- Download tomcat from this site.
- Unzip into a directory (if you use the default, it will be
unzipped into C:\jakarta-tomcat
- Add the foll. line to your autoexec.bat file:
SET JAVA_HOME=C:\jdk1.2.2
SET TOMCAT_HOME=C:\
SET PATH=%PATH%;C:\jakarta-tomcat\bin
SET CLASSPATH=%CLASSPATH%;C:\jdk1.2.2\lib\tools.jar
(re-start your machine, if needed).
If eveything went well, you can start start the tomcat server
by typing startup in a dos prompt. Starting it by
double-clicking should also work, but I don't prefer it.
If the server has started, you can checkout the examples at
the foll. URI: http://localhost:8080/
You can find JSP and servlet examples here.
To develop your own appli. please go through the instructions
at the foll. URI (whether the server is running or not)
file:/C:/jakarta-tomcat/doc/appdev/index.html
This URI explains in detail how you can develop your own
appli.s using tomcat and its ant build tool.
Hope this helps.
Regds.
- satya

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

Joined: Jan 31, 2000
Posts: 1467
Good Satya.
regds
maha anna
vishal sodani
Ranch Hand

Joined: Aug 26, 2000
Posts: 127
Satya,
I did what yu have written,but I get bad command error.I have tried other combinations also,and the windows open and close.I just dont know what to do!!
Help!! thanks
Sanjeev Verma
Ranch Hand

Joined: Aug 24, 2000
Posts: 87
Hi Madhav
I am a newbie to this Servlet business. I have may be one of the most stupid Q in the forum. The download link that you have mentioned leads to a site which ultimately leaves a lot to be decided by the downloader. Can you be a bit more specific please. This is the list of files it shows in the final page. WHICH ARE THE ONES THAT I HAVE TO DOWNLOAD TO SET UP MY TOMCAT SERVER AND START TESTING SERVLETS.
Index of /builds/tomcat/release/v3.1/bin
Name Last modified Size Description

Parent Directory 18-Apr-2000 16:04 -
jakarta-ant.tar.Z 18-Apr-2000 11:43 1.2M tar archive
jakarta-ant.tar.gz 18-Apr-2000 11:20 388k GZIP compressed file
jakarta-ant.zip 18-Apr-2000 11:47 588k
jakarta-tomcat.tar.Z 18-Apr-2000 13:26 3.1M tar archive
jakarta-tomcat.tar.gz 18-Apr-2000 12:31 1.8M GZIP compressed file
jakarta-tomcat.zip 18-Apr-2000 13:54 2.3M
jakarta-tools.tar.Z 18-Apr-2000 14:22 1.2M tar archive
jakarta-tools.tar.gz 18-Apr-2000 14:08 888k GZIP compressed file
jakarta-tools.zip 18-Apr-2000 14:29 888k
jakarta-watchdog.tar 18-Apr-2000 15:10 3.5M tar archive
jakarta-watchdog.tar.gz 18-Apr-2000 15:37 2.6M GZIP compressed file
jakarta-watchdog.zip 18-Apr-2000 16:03 2.7M
linux/ 18-Apr-2000 16:03 -
win32/ 18-Apr-2000 16:04 -

Apache/1.3.15-dev Server at jakarta.apache.org Port 80
Please help
Sanjeev Verma
Chithra Sankar
Greenhorn

Joined: Oct 17, 2000
Posts: 2
Hai,
Which all files need to be downloaded from /builds/tomcat/release/v3.1/bin
to install Tomcat?
Thankxxx in advance
Chithra
Pragya Prakash
Ranch Hand

Joined: Sep 18, 2000
Posts: 42

Download jakarta-tomcat.zip for tomcat installation.
Unzip this file & read the readme file located at jakarta-tomcat\doc\readme.
Let me know if u r having any other issues.
Regards,
Pragya

Originally posted by Chithra Sankar:
Hai,
Which all files need to be downloaded from /builds/tomcat/release/v3.1/bin
to install Tomcat?
Thankxxx in advance
Chithra

Pragya Prakash
Ranch Hand

Joined: Sep 18, 2000
Posts: 42
Hi Vishal,
Try Tomcat run at the dos prompt.
See the error message listed there.
And post them here.
In all probability, there r issues with classpath & path settings
Regards,
Pragya
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi.

I tried to install tomcat server as per instructions given but when I type startup at the DOS prompt I get the error
"The name specified is not recognized as an internal or external command,operable program or batch file."
I have a WinNT 4.0 Option pack and I have set the environment variables
JAVA_HOME=d:\jdk1.3
TOMCAT_HOME=d:\tomcat
CLASSPATH=.;%JAVA_HOME%\lib\tools.jar
PATH=%SystemRoot%\system32;%SystemRoot%;%JAVA_HOME%\bin;%TOMCAT_HOME%\bin
Please help

Originally posted by Madhav Lakkapragada:

Hi:
I am attempting to post the tomcat installation and
application instructions. Pl. feel free to fill-in
or correct.
The foll. instructions apply for jdk1.2.2 in the C:\
dir.
- Download tomcat from this site.
- Unzip into a directory (if you use the default, it will be
unzipped into [b]C:\jakarta-tomcat

- Add the foll. line to your autoexec.bat file:
SET JAVA_HOME=C:\jdk1.2.2
SET TOMCAT_HOME=C:\
SET PATH=%PATH%;C:\jakarta-tomcat\bin
SET CLASSPATH=%CLASSPATH%;C:\jdk1.2.2\lib\tools.jar
(re-start your machine, if needed).
If eveything went well, you can start start the tomcat server
by typing startup in a dos prompt. Starting it by
double-clicking should also work, but I don't prefer it.
If the server has started, you can checkout the examples at
the foll. URI: http://localhost:8080/
You can find JSP and servlet examples here.
To develop your own appli. please go through the instructions
at the foll. URI (whether the server is running or not)
file:/C:/jakarta-tomcat/doc/appdev/index.html
This URI explains in detail how you can develop your own
appli.s using tomcat and its ant build tool.
Hope this helps.
Regds.
- satya[/B]

Xinbo Cheng
Greenhorn

Joined: Jan 05, 2001
Posts: 15
My thanks to madhav, without his message, i would still be in the
dark.
His method works for Windows 98 after I made one minor change:

original SET TOMCAT_HOME=C:\
changed to SET TOMCAT_HOME=C:\jakarta-tomcat
Also note jdk1.2.2 is actually the name of folder conatining jdk1.*\bin, in my case, it is jdk1.2.
Another thing you have to do is change the memory allocation
for MS-DOS:
open up a fresh DOS window, click and hold the MS-DOS icon on the upper-left corner of the DOS window, you'll see a drop-down list,select properties, click on the "memory" tab, then change "auto" to 3072.
After all these, restart your computer, open a MS-DOS window,
change to the directory where you installed tomcat, in this case,
C:\jakarta-tomcat
at the prompt type: bin\startup
Hopefully, you are all set.
Xinbo
the following is copied from madhav's message
-----------------------------------------------------
The foll. instructions apply for jdk1.2.2 in the C:\
dir.
- Download tomcat from this site.
- Unzip into a directory (if you use the default, it will be
unzipped into C:\jakarta-tomcat
- Add the foll. line to your autoexec.bat file:
SET JAVA_HOME=C:\jdk1.2.2
SET TOMCAT_HOME=C:\
SET PATH=%PATH%;C:\jakarta-tomcat\bin
SET CLASSPATH=%CLASSPATH%;C:\jdk1.2.2\lib\tools.jar
(re-start your machine, if needed).
Diskmuncher
Greenhorn

Joined: Jan 05, 2001
Posts: 3
Originally posted by Xinbo Cheng:
[B]My thanks to madhav, without his message, i would still be in the
dark.
Man...setting up Tomcat under NT sure seems a heck of a lot easier than Tomcat under Unix...which I've been losing massive amounts of sleep over for two months now. Especially with integrating the new mod_jk (Tomcat 3.2) into Apache and getting mod_rewrite to work so that session tracking works w/ disabled cookies. I finally got it working earlier this week, but it certainly was NOT intuitive...at least to this non-Java programmer
Nitin Dubey
Ranch Hand

Joined: Oct 30, 2000
Posts: 126

Hi guys,
I seem many tomcat people have replied in this topic.
I have another problem of configuring IIS for tomcat. Please take the labour to visit my topic placed in this forum only. Subject is : Tomcat with IIS
thanx
nitin
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

Hi Nitin:
I visited your forum and asked a link for IIS, but I never
got any responses, I wanted to take a shot at it but not
sure where to find it. The only link in your thread is the
one explaining the Tomcat and IIS installations details.
Hope you get my point.
Regds.
- satya
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

xinbo:
I agree to what you said. I recently upgraded my tomcat to
3.2 and was surprised abt the TOMCAT_HOME settings. Well,
there should be something new with every release, you see.
Thxs for the update.
Regds.
- satya
balaji narayanan
Greenhorn

Joined: Nov 29, 2000
Posts: 4
hi
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"Diskmuncher",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Thanks.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Instructions explained