3

I use System.exit(), but it would always call the JVM shutdown hook. How can I shut down a Java process programmatically but not invoke the JVM shutdown hook ?

Michael Piefel
  • 18,660
  • 9
  • 81
  • 112
zjffdu
  • 25,496
  • 45
  • 109
  • 159

1 Answers1

6

Call Runtime.getRuntime().halt()

olexd
  • 1,360
  • 3
  • 13
  • 26