Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat window does not disappear

 
john gartree
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Cheers,

John
 
Masoud Kalali
Author
Ranch Hand
Posts: 531
Java Mac OS X Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
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 .
 
john gartree
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,

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, "jakarta-tomcat-5.0.19.zip" and set the environment. I just do not like the fact that the window remains open.

Thanks again for your help.

Kind regards,

John
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic