Article View: borland.public.jbuilder.java.language
Article #17107Re: exiting java other than System.exit()
From: Richard Wilkman
Date: Tue, 22 Dec 1998 00:00
Date: Tue, 22 Dec 1998 00:00
44 lines
2150 bytes
2150 bytes
Ted: You don't exit applets -- it's not your VM to kill. You have to handle any shutdown items you want and can call a method for that whenever *you* want to (say on stop()). Applications you traditionally use System.exit(). Make sure to wire up the various Frame methods for Window Closing events, etc. The javaw behaviour you see pre-dates JBuilder and is the main reason we don't default to the execution log in JBuilder and use the console instead. -Rich Ted Rallis wrote: > > How and why does one exit a java program (applet or application) > elegantly? > > I suppose you should call dispose() on all the windows and the VM should > exit if there are no outstanding threads. > If you call System.exit() that could be rude to other classes running in > the same VM. Uncomfortably, my experience is that javaw in jbuilder > becomes a zombie process when I only dispose() of all windows. > > How do you exit from applets and applications elegantly? > > Ted Rallis -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rich Wilkman Senior Quality Assurance Engineer Borland JBuilder Team If you see something that looks like an opinion up there, it's mine and mine alone. Mail sent to me from the newsgroups won't bounce but will be ignored. If I have time, I'll respond, but you have a better chance if you confine your posts to the newsgroups =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<367FC4F6.88457493@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<367ED757.DCEE06BB@hotmail.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 146a3d,e9573f62504064d2 X-Google-Attributes: gid146a3d,public X-Google-Thread: f74b3,e9573f62504064d2 X-Google-Attributes: gidf74b3,public From: Richard Wilkman <rwilkman@inprise.com> Subject: Re: exiting java other than System.exit() Date: 1998/12/22 Message-ID: <367FC4F6.88457493@inprise.com> X-Deja-AN: 424866390 Content-Transfer-Encoding: 7bit References: <367ED757.DCEE06BB@hotmail.com> Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language,borland.public.jbuilder.java.applet-issues