Hi All, Many Java greenhorns are asking questions related to TOMCAT installation. Here is my answer to all of them. Follow these steps to install on any windows platforms STEP 1. click here to Download jakarta-tomcat.zip http://jakarta.apache.org/builds/tomcat/release/v3.1/bin/jakarta-tomcat.zip save the file in to any temp folder. remember it to unzip it later. If you have any problem in doing it from the above link go here and get jakarta-tomcat.zip http://jakarta.apache.org/builds/tomcat/release/v3.1/bin/ STEP2. Unzip the jakarta-tomcat.zip to c:\ drive STEP3. After unzip check the folder whether it has bin, conf, doc, lib, logs, src, webapps, work folders and Licence file. STEP4. Change the jakarta-tomcat folder name to Tomcat ( for easy reference). Now add these two lines at the bottom of your autoexec.bat file if you are using win95 or 98. set TOMCAT_HOME=c:\tomcat set JAVA_HOME=c:\jdk1.2.2 I assumed you have jdk1.2.2 installed at c:\jdk1.2.2 otherwise install it before installing the tomcat. Again how to do that question??? if you are using winNT, open your system settings (go to Start-->Settings-->ContrlPanel-->System-->Environment. Now type TOMCAT_HOME in the variable place and c:\tomcat in the value place. click set. Now do the same with JAVA_HOME. click set and then apply ) STEP5: Now restart your pc if it is win95 or 98. STEP6: go to c:\tomcat\bin folder on DOS command prompt and sart tomcat with 'startup' command. STEP7: Open your browser and check with this URL to check whether it is running http://localhost:8080 Thats it. If you see the default page. You are all set. Otherwise let me (email@example.com) know. GOODLUCK. ------------------ Prasad
Joined: Oct 31, 2000
Dear Prasad: Thanx a lot . I did not sleep alst nite tryin to run my Tomcat. But after i did as u said . It worked its great Thank you Prasad but i am still havin problems in compiling my Servlets and Jsp .I am using JDK1.3 Can u help me in this pls ? rgds Siva [This message has been edited by Sivakumar Jagadeesan (edited November 15, 2000).]
Nice break down! I was just poking though the discussions and saw this post. I thought to myself "Hey, lets give this a try". I went from the download to start up in under two minutes. Now for some configurin'... Sean
Joined: Oct 03, 2000
I follow your step and set up all the parameter. when I try to run the startup, it say "bad command or file name". I am using jdk1.3 Thanks in advance,
Joined: Oct 03, 2000
Here are my 2 cents for win98 install of tomcat! Try this... If you are running a jdk ver less than jdk 1.2. remove you jdk and install the latest stable ver of the jdk. Install tomcat into c:\tomcat. Edit autoexec.bat to contain to following: rem java path=%path%;c:\jdk1.3\bin set JAVA_HOME=c:\jdk1.3 set CLASSPATH=.; rem tomcat path=%path%;c:\tomcat\bin set TOMCAT_HOME=c:\tomcat set CLASSPATH=%CLASSPATH%c:\tomcat\lib\servlet.jar set CLASSPATH=%CLASSPATH%c:\tomcat\lib\jasper.jar set CLASSPATH=%CLASSPATH%c:\java note: servlet.jar - contain classes for servlet development jasper.jar - contain classes for jsp development java - your development dir remove all references to JRE or rt.jar from you classpath The TOMCAT install used the loopback ip addr of 127.0.0.1 in your HOST file make sure you have the following entry. 127.0.0.1 localhost WARNING: * tomcat 3.1 will accept a new port addr in server.xml * tomcat 3.1 will NOT accept a new host name or host ip address. localhost reference appears to be hard coded somewhere. to change you host name/ip address you have to edit your systems hosts file. Pls correct me if I am wrong. Did I miss anything... This is cool stuff... ------------------ We learn more from our mistake's than from our success's.
[This message has been edited by Monty Ireland (edited November 17, 2000).]
Multi Platform Database Developer & DBA on E.S.T.
Joined: Nov 02, 2000
Hi Sivakumar, Make sure that whether you have servlet.jar in your classpath. Let me know the error you are getting in particular, then I can help you. Gavin, if it is saying bad command means, you may not be trying that command from c:\tomcat\bin folder. try to cd into the bin folder of tomcat and try startup.