title: mpirun was unable to find the specified executable file, with java
body: <p>I want to run the two java examples Hello.java and Ring.java from <a href="http://code.openhub.net/file?fid=o2YJR96r3hjFagh9JBsZg-SLLnc&amp;cid=2q_J7R93Zbs&amp;s=&amp;projSelected=false&amp;filterChecked#L0" rel="nofollow">this website</a>.
  I compiled them with </p>
  
  <pre><code> ./configure --enable-mpi-java
  </code></pre>
  
  <p>this line worked without any problem.</p>
  
  <p>then I called this line: </p>
  
  <pre><code>mpirun -np 2 Hello.java
  </code></pre>
  
  <p>But I get this error:</p>
  
  <p>mpirun was unable to find the specified executable file, and therefore
  did not launch the job.  This error was first reported for process
  rank 0; it may have occurred for other processes as well.</p>
  
  <p>NOTE: A common cause for this error is misspelling a mpirun command
        line parameter option (remember that mpirun interprets the first
        unrecognized command line token as the executable).</p>
  
  <p>Node:       alliance</p>
  
  <p>Executable: Hello.java</p>
  
  <p>the same occured when I call </p>
  
  <pre><code>mpirun -np 2 Ring.java
  </code></pre>
  
  <p>Can any one help me to solve problem?</p>
  
  <p>PS: this question is not a duplicate with <a href="https://stackoverflow.com/questions/27539807/mpirun-was-unable-to-find-the-specified-executable-file">this question</a>, because my question is in java, but the other in c++.</p>