Run shell command from jar?
Posted
by
phineas
on Stack Overflow
See other posts from Stack Overflow
or by phineas
Published on 2011-01-06T22:46:24Z
Indexed on
2011/01/06
22:53 UTC
Read the original article
Hit count: 215
The usual way to call a shell command from java is something like that:
Process process = Runtime.getRuntime().exec(command);
and works usually fine. But now I've exported my project to an executable jar file and callig shell commands doesn't work any more. Are there any explanations, solutions or workarounds for this problem?
phineas
--
edit:
even keyboard interrupts (ctrl+c; ctrl+d) aren't recognized.
terminal input won't work after killing java
© Stack Overflow or respective owner