I have a Java program that prints something using System.out.println()
. How can I get that output into my bash program? I am trying something like this:
$offset = java -jar /path/to/jar/myjar.jar $arg1 $arg2
But that line will just give me the following error:
0: command not found