5

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,734
  • 9
  • 41
  • 60
tiboo
  • 8,213
  • 6
  • 33
  • 43
  • 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

1

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
  • 2,123
  • 2
  • 18
  • 24
Prizzle
  • 11
  • 1