• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Starting Tomcat with CMD

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I got my answer here,

Answer

Thanks
reply
    Bookmark Topic Watch Topic
  • New Topic