4

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());
DavidPostill
  • 7,453
  • 9
  • 38
  • 57
tiboo
  • 7,017
  • 6
  • 30
  • 41
  • If running from Maven is an option: https://stackoverflow.com/questions/45188534/how-to-stop-a-maven-project-started-in-netbeans – Angelo Fuchs Jul 19 '17 at 11:01
  • 1
    The same question was asked here: https://stackoverflow.com/questions/2375146/shortcut-to-stop-execution-of-program-in-netbeans CTRL + SHIFT + DEL shortcut will end the top running program of the 'stack'. – Ian James May 07 '20 at 20:53

1 Answers1

0

I only know a simple way: there is a little button below on the right hand, so you can click the photo to see more cleaner. That's all. enter image description here

Bohao LI
  • 1,435
  • 17
  • 22