title: Installing Java on OS X 10.9 (Mavericks)
body: <p>I have installed the <a href="http://en.wikipedia.org/wiki/Java_Development_Kit" rel="noreferrer">JDK</a> on <a href="http://en.wikipedia.org/wiki/OS_X_Mountain_Lion" rel="noreferrer">Mac&nbsp;OS&nbsp;X&nbsp;v10.8</a> (Mountain Lion). When I upgraded it to <a href="https://en.wikipedia.org/wiki/OS_X_Mavericks" rel="noreferrer">Mac&nbsp;OS&nbsp;X&nbsp;v10.9</a> (Mavericks) and ran <code>java -version</code> in the terminal, it showed:</p>
  
  <blockquote>
    <p>No Java runtime present, requesting install.</p>
  </blockquote>
  
  <p>Then I manually installed the JDK (1.7) on my Mac. It seems that the installation worked fine. When the installation was done, I opened the terminal and typed <code>java -version</code> as well. It also showed the same error:</p>
  
  <blockquote>
    <p>No Java runtime present, requesting install.</p>
  </blockquote>
  
  <p>How can I solve this problem?</p>