The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2002

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Does this help?

Posted by Andrew Boddy on February 21, 2002 at 4:10 AM

Try
System.exit(1);

This will return 1 to the environment that you started your program. Maybe return 0 or -1 if the program ever needs to exit with an exception or error.

Andy



Replies:
  • reply Matt February 21, 2002 at 5:46 AM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us