Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Starting Tomcat with CMD

 
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: 35976
422
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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!