Shutting down your Java program

To ensure that your program shuts down properly, issue System.exit(0) as the last instruction before your Java program ends.

AS/400 Toolbox for Java connects to the AS/400 with user threads. Because of this, a failure to issue System.exit(0) may keep your Java program from properly shutting down.


[ Legal | AS/400 Glossary ]