[4392] in java-interest

home help back first fref pref prev next nref lref last post

Re: exiting an application

daemon@ATHENA.MIT.EDU (Amy Fowler)
Thu Dec 21 16:20:16 1995

Date: Thu, 21 Dec 1995 11:17:06 -0800
From: aim@scndprsn.eng.sun.com (Amy Fowler)
To: java-interest@java.Eng.Sun.COM, m224873@svmstr01.mdc.com


>>
>>If I detect an error in a Java application and want to terminate the
>>application what do I have to call to do it?

    System.exit(<status>);

    where <status> is a non-zero exit code indicating the
    type of error.

See:

http://java.sun.com/JDK-beta2/api/java.lang.System.html#_top_

Good Luck,
Amy Moore-Fowler
Java Products Group
Sun Microsystems, Inc.

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post