Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.CARNet.hr!gregory.BNet.hr!not-for-mail From: Josip Almasi Newsgroups: comp.lang.java.programmer Subject: Re: refusal to quit Date: Fri, 29 Aug 2014 22:16:03 +0200 Organization: B.net Hrvatska d.o.o. Lines: 16 Message-ID: References: NNTP-Posting-Host: cpe-188-252-128-60.zg5.cable.xnet.hr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: gregory.bnet.hr 1409343363 8470 188.252.128.60 (29 Aug 2014 20:16:03 GMT) X-Complaints-To: abuse@globalnet.hr NNTP-Posting-Date: Fri, 29 Aug 2014 20:16:03 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 In-Reply-To: Xref: csiph.com comp.lang.java.programmer:29871 On 08/29/2014 06:56 PM, Roedy Green wrote: > Sometimes programs simply refuse to quit after main has terminated. > > Sometimes the app is single-thread so I am baffled what it is waiting > for. > > Practically I can make things work by adding a System.exit(0) > as the last thing in main. > > However, I would like to understand what is going on. Is there a way > to shed some light on why a program won't quit? Yep, start jconsole and inspect threads, there must be some running, started implicitly by some lib. Regards...