Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cross-project-issues-dev] change behavior of terminate button

Maps,

this is a developer mailing list for discussions among
committers and project leads.

Please post your question on one of the Eclipse newsgroups
instead, I would suggest 
   news://eclipse.tools.jdt
since this is a Java question, probably involving the way
how Eclipse launches Java apps.

Cheers,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
 
 

> -----Original Message-----
> From: cross-project-issues-dev-bounces@xxxxxxxxxxx 
> [mailto:cross-project-issues-dev-bounces@xxxxxxxxxxx] On 
> Behalf Of maps@xxxxxxxxxxxxxxxx
> Sent: Mittwoch, 11. März 2009 11:11
> To: cross-project-issues-dev@xxxxxxxxxxx
> Subject: [cross-project-issues-dev] change behavior of 
> terminate button
> 
> I created a small program. Inside that program is a class 
> which I registered as a shutdownhookthread to jvm. I just 
> invoked Runtime.addShutDownHook( myShutDownHookThread ). The 
> inside the run method of myShutDownHookThread is a line which 
> calls stop() method and the stop method is just simply 
> System.out.println("shutdownhook thread called");
> 
> I tried to run the program using the command line. When I 
> pressed Ctrl+C, "shutdownhook thread called" was printed. 
> However, I tried to run in as a java application in eclipse. 
> When I pressed the red button, nothing is printed. I had a 
> doubt if the shutdown sequence of jvm was executed.
> 
> so, is there any chance of getting the jvm shutdown correctly 
> by clicking the red button in the console view? any suggestions?
> 
> 
> 
> _______________________________________________
> cross-project-issues-dev mailing list
> cross-project-issues-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev
> 


Back to the top