Process Runner is java based library using which one can execute system process or scripts [shell scripts, batch file, python scripts, ruby scripts etc] from inside your java program.
Please visit link http://code.saptarshidebnath.com/processrunner/ for implementation guideline.