How do I return a return-code from main?

From: wl (bli01_at_yahoo.com)
Date: 03/05/04


Date: Fri, 05 Mar 2004 15:01:17 GMT

Hi all,
Pls help with the following:

I have a stand-alone java program which will need to return a return-code to
the running script. I thought I could just use:

return -1;

inside the "public static int main(String[] args)". However, I get an
error. Apparently, I can only have "public static void main(String[]
args)".

Is there a way I can return a return-code?

Thanks,
Bill



Relevant Pages