title: Running a Unix Executable Objective-C file in Java (OS X)
body: <p>I've seen this question asked before and tried following the solutions posted. Unfortunately, they aren't working. I'm trying to make a simple Java program that can run a compiled Objective-C program (Unix Executable file) with an input parameter. Below are the attempts at Java I have tried that don't seem to be working:</p>
  
  <pre><code>String[] cmd = {"/bin/bash", fullFilePath, Param};
  Runtime.getRuntime().exec(cmd);
  </code></pre>
  
  <p>This is generating a Processor error of 126 for "Command invoked cannot execute". I've tried other variations that don't work as well such as:</p>
  
  <pre><code>String[] cmd = {"/bin/bash fullFilePath \"Param\""};
  String[] cmd = {"/usr/bin/open fullFilePath \"Param\""};
  </code></pre>
  
  <p>Any suggestions or ideas on how I can get this to work? I just need to run the compiled Objective-C program in Java with the parameter. I figured it wouldn't be this hard. Thanks in advance, and if you need more information just ask.</p>