List of usage examples for java.lang Runtime halt
public void halt(int status)
Source Link
From source file:Main.java
public static void main(String[] args) { // halt this process Runtime runTime = Runtime.getRuntime(); runTime.halt(0); }