The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
March 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Re: Program exit

Posted by Ashwin Tadepalli on March 02, 2001 at 2:17 PM

Hi,
I am having some trouble in my program just before I exit when I use the System.exit(0) command.All I have to do is exit from the main program after checking some basic conditions(if/else statements) and not to proceed further processing.But although it exits at that point it brings down with it my servlet engine which I do not want.I tried using try/catch to remedy the situation.But my main question is why is it bringing down my servlet engine to a halt if I use that command because that was how we usually exit from a point in the program in other languages like C++.Please do provide any suggestions as to why it is happening.
Thanking You
Ashwin



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us