I am using Runtime.getRuntime().exec() to run a shell script from java code.
String[] cmd = {\"sh\", \"build.sh\", \"/Path/to my/sh file\"}; try{
sh is unable to find the build.sh script. To fix this you can provide the full path to build.sh.
sh
build.sh