title: Can't run java when trying to download Scala
body: <p>I'm working with a Scala project and am trying to get IntelliJ to work with it.  (If it makes a difference, I've gotten it to work before.  But my machine died and had to be replaced, and this is the first time I've tried to use Scala since reinstalling IntelliJ on the new machine.)  The machine is running Linux.</p>
  
  <p>I've gotten the banner that says "No Scala SDK in module", and I selected "Setup Scala SDK"; Create; Download; Version 2.11.11; OK.  But I get the message</p>
  
  <blockquote>
    <p>Cannot run program "java" (in directory "/tmp/sbt-project"): error=2,
    No such file or directory</p>
  </blockquote>
  
  <p>Why is it looking in that directory (which does not exist on my machine)?  It's possible there are some settings that got copied over from my previous machine.  If so, where would I find and fix the setting?</p>
  
  <p>How do I get past this problem?</p>
  
  <p><strong>Note:</strong> In a desperate attempt to work around the error, I created /tmp/sbt-project and symlinked the Java binaries into it.  When I tried again, I got the same error except it said <code>in directory "/tmp/sbt-project1"</code>.  I tried creating /tmp/sbt-project1 as a symlink, and when I retried, it said <code>in directory "/tmp/sbt-project2"</code>.  What's going on?</p>