First of all, I had some issues on the process, but the one I want to fix is passing some terminal arguments into Java:
ProcessBuilder pb = new ProcessBuilder("bash",
"-c",
"/User/me/path/to/Binaryfile/binfile",
"-o this -a is -z specific -m kind -y of -kl arguments -i want "
);
If i run with this code,
ProcessBuilder pb = new ProcessBuilder("bash",
"-c",
"/User/me/path/to/Binaryfile/binfile"
);
I get the execution of the binary file. Remember I'm using a Mac, and I want to run the binary with some specific args of this one. Sorry, if my English is bad.