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