ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Taft <a...@hydroblaster.com>
Subject Re: Exception in thread doesn't return error code to system
Date Mon, 20 Feb 2006 18:17:53 GMT


Markus Fischer wrote:
> I'm not very confident with Java so I wasn't able to figure out how I
> can signal the shell that an error occurred in this special case.

Catch the error and then do:

System.exit(n);

where n is the error number you want to return to the shell.

See also 
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/System.html#exit(int)



Mime
View raw message