How to get shutdown hook to execute on a process launched from Eclipse

前端 未结 7 1524
天涯浪人
天涯浪人 2020-12-03 00:43

I have a shutdown hook in my application (created using Runtime.getRuntime().addShutdownHook). However if I launch the application from within Eclipse, when it

7条回答
  •  日久生厌
    2020-12-03 01:09

    I'm stuck in websphere at the moment, and don't see what I'm looking for. But I do remember eclipse having a run configuration option related to launching the application in the same VM. Is it possible your launching your java application in the same VM as the eclipse VM?

    But the option slips my mind.

提交回复
热议问题