title: Cannot run program "java" (in directory)
body: <p>I am trying to integrate MPJ Express in eclipse(Kepler) in Ubuntu 13.04</p>
  
  <p>The environment variables defined in .bashrc are as follows:</p>
  
  <pre><code>export JAVA_HOME=/home/soumya/Work/jdk1.7.0_25
  export PATH=$PATH:/home/soumya/Work/jdk1.7.0_25/bin    
  export MPJ_HOME=/home/soumya/InstalledSoftwares/mpj-v0_38
  export PATH=$PATH:$MPJ_HOME/bin
  </code></pre>
  
  <p><strong>Problem 1:</strong>
  When I start Eclipse I get an error:</p>
  
  <pre><code>A Java Runtime Environment (JRE) or Java Development Kit (JDK) 
  must be available in order to run Eclipse. No Java virtual machine 
  was found after searching the following locations: 
  /home/soumya/Work/eclipse/jre/bin/java java 
  in your current PATH
  </code></pre>
  
  <p>This was solved by copying the jre folder inside the Eclipse folder. So now Eclipse starts.</p>
  
  <p><strong>Problem 2:</strong>
  I can't seem to run a multicore program.  In the run configurations of my Java project I have done the following:</p>
  
  <ul>
  <li>Set a variable <code>MPJ_HOME</code> to <code>/home/soumya/InstalledSoftwares/mpj-v0_38</code></li>
  <li>Set environment variable <code>MPJ_HOME</code> to <code>${MPJ_HOME}</code></li>
  <li>Set VM Arguments to <code>-jar ${MPJ_HOME}/lib/starter.jar</code></li>
  </ul>
  
  <p>But when I run the program, I get the following error:</p>
  
  <pre><code>MPJ Express (0.38) is started in the multicore configuration
  java.io.IOException: Cannot run program "java" (in directory "/home/soumya/Work/EclipseWorkspace/SoftwareArchitectureProject/MulticoreDebuggerDemo"): error=2, No such file or directory
  
  at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
  at runtime.starter.MulticoreDaemon.startNewProcess(MulticoreDaemon.java:268)
  at runtime.starter.MulticoreDaemon.&lt;init&gt;(MulticoreDaemon.java:109)
  at runtime.starter.MPJRun.&lt;init&gt;(MPJRun.java:146)
  at runtime.starter.MPJRun.main(MPJRun.java:964)
  
  Caused by: java.io.IOException: error=2, No such file or directory
  
  at java.lang.UNIXProcess.forkAndExec(Native Method)
  at java.lang.UNIXProcess.&lt;init&gt;(UNIXProcess.java:135)
  at java.lang.ProcessImpl.start(ProcessImpl.java:130)
  at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
  ... 4 more
  </code></pre>