Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to start tomcat startup from command prompt?

 
Dinesh Kumar J
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64708
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume that there is a corresponding .bat file in the bin folder?
 
Dinesh Kumar J
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic