• Post Reply Bookmark Topic Watch Topic
  • New Topic

Starting Tomcat with CMD  RSS feed

 
Jan De Lange
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


I'm trying to automatically start and stop tomcat 8.0. I've got the stop to work. When I try and start it, it runs in the command line (but still shows Stopped as in the img below) and everything works fine but as soon as I close the window it shuts down. Does anyone know how I can start tomcat as I would by clicking on the Start button?




Thanks,
T
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37253
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That looks like Windows. So first open a DOS or Powershell command line. Then cd to the bin directory for Tomcat (which is listed in your screens hot above). Then type startup.bat. That starts it up once.

To have it start when Windows starts up, you need a Windows service. Is that what you are trying to do when it doesn't start? What's in the logs when it shuts down?
 
Jan De Lange
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got my answer here,

Answer

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!