How to open another java program in java and get all the information it sends on the console [closed]

2

Well, I was researching but I did not have much success, I wanted to open a java program, a jar, it does not have JFrame, it only sends information to the Console, I want to execute it and get this information and send it to that too, could you help me?

    
asked by anonymous 12.09.2015 / 15:55

1 answer

0

The question is a bit confusing, but if you want to get the data from this program you can try to run it through the terminal (console) and assign it to a text file.

Example:

java -jar Programa.jar > saida.txt

So, you can do with what your code reads this text file to take advantage of the data that the jar program generated.

    
01.10.2015 / 01:36