It appears you're missing a " at the end of

ProcessBuilder pb=new ProcessBuilder("./script.sh);

Maybe that was just when you posted it online, but if not, that's probably your problem.
...