How do I stop a running process in Netbeans

拥有回忆 提交于 2019-12-12 11:51:19

问题


In Netbeans, after running a project (by clicking F6), how can I stop that running progress as if it were shutdown by the OS (not cancel it)?

On the Output windows of Netbeans, there is only a cancel button, which cancels the running process.

In my program, I handle the shutdown event (addShutdownHook), and cancelling the running progress doesn't program jump to shutdown code handler.

Runtime.getRuntime().addShutdownHook(new StopThread());

来源:https://stackoverflow.com/questions/29247147/how-do-i-stop-a-running-process-in-netbeans

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!