2013-10-01 48 views
0

是否有可能从java调用bash脚本? 和过去我们用腻子编写的netbeans 得到,设置和分配。Bash脚本与netbeans/java

如果属实,我可以在哪里了解更多信息? 任何信息将是真棒

+0

'难道...'==> -1。 '我在哪里可以学到更多......'==> -1。你读过[help](http://stackoverflow.com/help)了吗? – devnull

+0

那么你可以简单地寻找答案。这里有一些: http://stackoverflow.com/questions/16825001/running-a-bash-command-from-within-a-java-program http://stackoverflow.com/questions/4890175/how- do-i-execute-bash-commands-and-collect-the-output-from-java http://stackoverflow.com/questions/13707519/running-a-bash-shell-script-in-java –

回答

0

你可以使用ProcessBuilder

(有许多类似的问题...)

+0

谢谢,正是我所需要的 – LeRoy