How to print error description after callin System.exit(-2)
0 posts in topic
Flat View  Flat View

Posted By:   Abhishek_Agrawal
Posted On:   Tuesday, April 9, 2002 10:16 AM

consider the java code below ...

public class T
public static void main(String[] args)

consider following batch file which calls the above program ...

@echo off
java T

what i want to do is print out -2, however seems like ERROR_LEVEL env. variable is not the right one. Can somebody tell me the right variable ...

This is WinNT.

About | Sitemap | Contact