1

Java calling bash script : Permission Denied Error

view story
linux-howto

http://stackoverflow.com – I am trying to call a bash script from a java class . This is my java program import java.io.File; public class RunBuild { public static void main(String[] args) { File wd = new File("/home/sai/Jan5WS/ATCore/bin/"); System.out.println("Working Directory: " + wd); Process proc = null; try { proc = Runtime.getRuntime().exec(" . Ram.sh", null, wd); System.out.println(proc.getInputStream()); } catch (Exception e) { e.printStackTrace(); } } } I have got all the permissions for that script , please see (HowTos)