Example usage for java.lang Runtime halt

List of usage examples for java.lang Runtime halt

Introduction

In this page you can find the example usage for java.lang Runtime halt.

Prototype

public void halt(int status) 

Source Link

Document

Forcibly terminates the currently running Java virtual machine.

Usage

From source file:Main.java

public static void main(String[] args) {

    // halt this process
    Runtime runTime = Runtime.getRuntime();
    runTime.halt(0);
}