wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Installing Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Installing Tomcat" Watch "Installing Tomcat" New topic
Author

Installing Tomcat

Sanjeev Shahi
Ranch Hand

Joined: Feb 26, 2001
Posts: 83
Hi!
I've downloaded tomcat and unzipped it. Now when I dobleclick startup.bat I am getting following error cannot find file -Djava.endorsed.dir....
where I've to specify JAVA_HOME ? And what else I've to do to run tomcat?
I've downloadeds 4.1.12
thanks,
SS
Sanjeev Shahi
Ranch Hand

Joined: Feb 26, 2001
Posts: 83
FYI I downloaded
following zip file jakarta-tomcat-4.1.12.zip
from following site .............
http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.12/bin/

thanks,
SS
Timothy Stone
Ranch Hand

Joined: Aug 01, 2001
Posts: 71
Sanjeev,
you got the zip... expanded it. and double-clicked the startup.bat.
The full answer of course can be found at the Tomcat home page Jakarta Tomcat... but the short answer is:
Windoze: at a command prompt:

To permanently set this in Windoze 2k and above:
Open the Properties sheet for My Computer:
Right-click on My Computer > Properties > Advanced Tab > Environment Variables
Do the same as above but add a new System Variable with the name of JAVA_HOME and a value as shown above.
Then edit the PATH System variable as shown above to include the bin directory of your Java SDK.
UNIX is a variant of this but since the variants set paths differently I'll cover Bash:
In your home directory edit the .bash_profile file to include something like:

Of course all this is moot if you do not have the Java SDK installed. This is not the same as the JRE! Get the full Software Development Kit (SDK) for Java from the Sun website. v1.3x and 1.4x are fine. Tomcat 4.1.12 is 1.4 ready. The LE download of Tomcat is optimized for 1.4 by the way.
Hope this helps,
Tim


Timothy Stone, MIT, SCJP
http://www.petmystone.com/
"This Satan's drink [coffee] is so delicious, we shall cheat Satan and baptize it." --Pope Clement the VIII (1592-1605)
Sanjeev Shahi
Ranch Hand

Joined: Feb 26, 2001
Posts: 83
Timothy,
Thanks it worked. Now I want use manager application. when I start tomcat and then add following lines to server.xml
<Context path="/manager" debug="0" privileged="true" docBase="/jakarta-tomcat-4.1.12/server/webapps/manager">
</Context>
my manager application works but while try to shutdown the tomcat it gives error. Also it does not restart. Do you know where is exact place to add above lines or I've to make changes to existing lines in server.xml.
thanks,
SS
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Installing Tomcat
 
Similar Threads
debugging with tomcat
mod_jk // not clear on server.xml configs
Tomcat JSPs and JRE 5.0
Error The requested resource is not available
JDBC and JAKARTA TOMCAT 4.01