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

In my opinion, the cross project's mailing list is not an appropriate place to ask questions of this nature.  This mailing list is intended to discuss issues that are likely to effect a significant cross section of Eclipse's projects.

Please use the newsgroup for this type of question:
Use the web portal if you don't have newsgroup access:
Of course having said this, it's highly likely someone will feel a compelling need to contradict me resulting in huge flood of notes about onerous censorship.  :-P

maps@xxxxxxxxxxxxxxxx wrote:
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

Back to the top