File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes tomcat window does not disappear Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat window does not disappear" Watch "tomcat window does not disappear" New topic

tomcat window does not disappear

john gartree

Joined: Sep 03, 2005
Posts: 2

I have recently installed tomcat 5 and would like the dos window to disappear, anybody know how to make it disapper?


Masoud Kalali
Ranch Hand

Joined: Jul 08, 2004
Posts: 531

Tomcat Run as a Windows service in background (old version does open a window)
and just show an indicator in systm try.
goto : Tomcat_home/bin/tomcat5w.exe is the service starter and does not open any window.
Tomcat_home/bin/tomcat5.exe open that does window which let you see all out messages.
can u tell me which version of tomcat u use ? 5.0 or 5.5.x ?
because all new version has the service starter within the installer.

Hope it helps .

Masoud Kalali
Software Engineer - My Weblog - GlassFish Security
john gartree

Joined: Sep 03, 2005
Posts: 2

Thank you for replying. I am using 5.0.19. Tomcat.exe and tomcatw.exe do not appear to do anything accept a very quick flash on the screen. I never used an installer. I downloaded this file, "" and set the environment. I just do not like the fact that the window remains open.

Thanks again for your help.

Kind regards,

William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
If you are getting just a quick flash and Tomcat does not start, probably something is wrong with an environment variable.
In general, to get Java programs to run without a command window showing, you execute with javaw instead of java.
If you are starting Tomcat with startup.bat or catalina.bat, it looks like you should be able to start without a window by replacing the uses of the environment variable _RUNJAVA with _RUNJAVAW everywhere it appears. See the batch file setclasspath.bat in /bin directory for where this environment variable gets set.
I agree. Here's the link:
subject: tomcat window does not disappear
It's not a secret anymore!