 <p>You can use <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Runtime.html#exec%28java.lang.String%29%20%22java.lang.Runtime.exec%28String%20command%29" rel="nofollow">java.lang.Runtime.exec(String command)</a> to execute a shell script from Java.</p>