how to run cygwin script from java
问题 I'm trying to run a bash script from a Java program I'm writing in windows. I've been trying to use the Runtime object to get a process to work, and my program compiles and runs without exceptions, but my simple test script, which just makes a directory, is not being executed. Here's what I've got so far: String cmmd[] = new String[3]; cmmd[0] = "C:\\cygwin\\bin\\bash.exe"; cmmd[1] = "cd C:/Users/pro-services/Desktop/projects/github/cygwin"; cmmd[2] = "bash TEST.sh"; Runtime rt= Runtime