title: Cannot install Java SDK into IntelliJ IDEA
body: <p>I use Linux Mint 17 "Qiana" and I've downloaded and installed IntelliJ IDEA to learn Java. Now, while trying to set up JDK for a new project, I get an error <code>The selected directory is not a valid home for JDK</code>. The path to JDK I try to use is <code>/usr/lib/jvm/java-7-openjdk-i386</code>. I also tried to use <code>/usr/lib/jvm/java-8-oracle/bin</code> but it does not work as well. Is there any way to fix it without some magic or shamanry?</p>
  
  <p>P.S. When I try to set a new Android project (what is the purpose of my Java studies) up, it doesn't see my Android SDK as well.</p>
  
  <p>P.P.S. When I first faced this problem, I installed IDEA as a common user.  So I removed it and re-installed using <code>root</code> privileges but that didn't work. :(</p>