Hello All,
I am running a jar (test.jar) file from a batch file(mybatch.bat) using the command "java -jar test.jar input1". The jar is executed properly. Now in a method in the jar file i am setting a flag bit(true/false) in an if condition. I want to retrieve this value in to batch file(mybatch.bat) which called the jar file and store it in a variable in the same batch file. In this batch file I will put an if condition which will run another jar. The second batch will be called only if the IF condition in the batch file is satisfied.
I am struggling to retrieve the flag bit value from the first jar into the same batch file after the execution of first jar is completed.