This is kind of a similar (not duplicate)to this question. It's different in the sense it's executed from Windows
batch script and NOT UNIX
shell script as the link states.
execute jar return data to shell script
In my case, I have a runnable jar that is executed from command/batch script in Windows. I am using System.out.println
in java
to display the output onto the DOS window. How do I read it in onto a batch variable?
As the linked article states, the executable jar can't return a value as the main returns void.