• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Installing Tomcat

 
Sanjeev Shahi
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 71
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sanjeev Shahi
Ranch Hand
Posts: 83
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic