This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Starting Tomcat 4 Server 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 » Products » Tomcat
Bookmark "Starting Tomcat 4 Server" Watch "Starting Tomcat 4 Server" New topic
Author

Starting Tomcat 4 Server

Garandi Garandi
Ranch Hand

Joined: Jan 07, 2003
Posts: 192
Dear Reader,
I am new to Tomcat.
Question 1: How tomcat.exe starts the tomcat server?
Question 2: What is the relationship between tomcat.exe and Startup.bat(starts up the tomcat server)?
Question 3: How to start Tomcat 4 server on Windows from a java program?
What are the best resources to learn more about Tomcat 4 server.
Thank you in advance
Garandi
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

1) I've never double-clicked tomcat.exe before. It opens a dos window which disappears after about 10 seconds. I have no idea what this file does. So my answer is: It doesn't (Start the tomcat server).

2) None that I can see. There is no call to tomcat.exe in startup.bat *or* catalina.bat

3) I'm not sure why you'd want to do this. There are startup scripts (DOS based) and a Windows Service that you can take advantage of to start Tomcat. But if you need/want to, you can start Tomcat from within java like any other program within java... use the Runtime.getRuntime() and various exec() methods.

Tomcat docs are fairly complete. I know it's somewhat tedious to say, but reading the docs is a good idea.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Starting Tomcat 4 Server
 
Similar Threads
Tomcat Not Starting with startup.bat
Tomcat Not Starting with startup.bat
How to set the java framework at the application level
Possible Work-around with Tomcat 4.1.12 and JDK 1.4.0 on Windows 2000
How does Tomcat->Threadcount relate to Min/MaxProcessor tag