title: Java Runtime Environment not found error
body: <p>I've been working on <code>Aptana</code> Studio and some JRE required software for a bit of time now , but since yesterday something quite odd happened, as suddenly the software that requires it threw me an error <code>No Java virtual machine was found</code> . <strong>Last thing I did before that was restoring my system files permissions</strong> thought safe mode as I had some trouble with that , could this have anything to do with it ? </p>
  
  <p>I've tried installing JRE once again , no results. However when I run </p>
  
  <pre><code>/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
  </code></pre>
  
  <p>I do get the following </p>
  
  <pre><code>java version "1.7.0_55"
  Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
  Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)
  </code></pre>
  
  <p><code>Aptana</code> gives me the following error</p>
  
  <pre><code>No Java virtual machine
  was found after searching the following locations:
  /Applications/Aptana Studio 3/AptanaStudio3.app/Contents/MacOS/jre/bin/java
  java in your current PATH
  </code></pre>
  
  <p>And other software such as <code>Spine</code> won't simply start. </p>
  
  <p>My .bash_profile is the following : </p>
  
  <pre><code>PATH="/Library/Frameworks/Python.framework/Versions/3.4/bin:${PATH}"
  PATH="/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/bin:${PAT$
  export PATH
  export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home
  </code></pre>
  
  <p>The output of <code>echo $PATH</code>is the following</p>
  
  <pre><code>/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin
  </code></pre>
  
  <p>The output of <code>echo $JAVA_HOME</code> is the following</p>
  
  <pre><code>/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home
  </code></pre>
  
  <p>And Java invocations on the terminal work.</p>
  
  <p>Guidance will be highly appreciated. </p>
  
  <p><img src="https://i.stack.imgur.com/lrlSy.png" alt="JRE Error"></p>