File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes How to start tomcat startup from command prompt? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to start tomcat startup from command prompt?" Watch "How to start tomcat startup from command prompt?" New topic
Author

How to start tomcat startup from command prompt?

Dinesh Kumar J
Greenhorn

Joined: Aug 23, 2012
Posts: 6
I am using Apache tomcat 7.0.12.

Could anyone please let me know how to start the tomcat server from command prompt?

In Linux, we can give /<location address>/startup.sh. What to give in Windows 7 ?

I want to check whether tomcat server is running or not from the command prompt.

Please guide me.

Many thanks in advance.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61418
    
  67

I assume that there is a corresponding .bat file in the bin folder?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Dinesh Kumar J
Greenhorn

Joined: Aug 23, 2012
Posts: 6
I checked my private messages and submitted a request to change my display name. It is in progress.

Yes. startup.bat and stop.bat files are there. But when I double click on that one, I am not able to see whether the tomcat is started or not.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
Open a command prompt window, navigate to the bin directory and execute startup.bat from the command line.

You will see some information on the parameters Tomcat is trying to use, but startup.bat tries to execute another bat file in a command prompt window which may pop up and close before you can see what happens. To keep that 2nd window open modify startup.bat call statement to use run instead of start:



Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to start tomcat startup from command prompt?