0

I'm trying to start Tomcat, but the window prints an error and closes before I can read it. The logs don't update. Does anybody know how to keep it open? Thanks.

user940016
  • 2,878
  • 7
  • 35
  • 56

2 Answers2

0

Add the following code as the last line in the batch file (.bat)

pause

Sandeep Yohans
  • 929
  • 1
  • 14
  • 36
0

It's common to happen when the required environment variable JAVA_HOME is not defined or is incorrect. You can add pause at the end of the .bat (before :end) or if I'm right try this to solve the original problem:

  • If using Windows, follow this instructions.
  • Under Linux this.
  • Under Mac OS X this.
Community
  • 1
  • 1
exoddus
  • 2,230
  • 17
  • 27