I want to know how can I run a another java console application (jar1) inside another java application (jar2) also I want to be able to see jar1 outputs and insert my own inputs from jar2.
Let me explain more. there is a program called spigot (see more in www.spigotmc.org): Spigot is CLI java program for running a minecraft server
and you have to run it with launch flags in a bat file in windows server like:
java -Xmx 1024m -Xms 1024Xms spigot.jar1
. Now I want to make a program which let me to running this on my own graphical design not in a console.
How can I pass arguments to an existing command window?