How can I run an another java process (with a console) in Linux?
I know I should use ProcessBuilder
or Runtime.getRuntime().exec()
to execute a command,
but I want to know how I can show an separate X-window command terminal (ex. /usr/bin/xterm
) or at least show an console-terminal looking window and run a java process with stdin,stdout,stderr on that.
Is there any solution? I heard the Process.getOutputStream()
doesn't work on xterm, but haven't tried it yet (Because I'm using Windows..)
EDIT: The java program I want to execute uses jline, which uses JNI...