title: Why does IntelliJ seem to import my scala libraries twice?
body: <p>I have just started trying to use Scala with IntelliJ. I created a new project as per the instructions in:</p>
  
  <p><a href="https://docs.scala-lang.org/getting-started-intellij-track/getting-started-with-scala-in-intellij.html" rel="nofollow noreferrer">https://docs.scala-lang.org/getting-started-intellij-track/getting-started-with-scala-in-intellij.html</a></p>
  
  <p>I installed scala 2.12.6 using Homebrew and selected that when creating my new Scala project in IntelliJ. </p>
  
  <p>For some reason, under External Libraries, I have every jar inside the scala installation twice:</p>
  
  <p><a href="https://i.stack.imgur.com/GS8CV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GS8CV.png" alt="IntelliJ_Scala_Libraries"></a></p>
  
  <p>I created a hello world and when I try to run it, I get this error:</p>
  
  <pre><code>Error:scalac: Multiple 'scala-library*.jar' files (scala-library.jar, scala-library.jar) in Scala compiler classpath in Scala SDK scala-sdk-2.12.6
  </code></pre>
  
  <p>However inside the Scala libraries folder there is only one jar of each.</p>
  
  <p>I'm not sure what I'm doing wrong here. I've tried other versions of Scala, but got the same results. I tried to delete one of the jars, and deleted the actual only copy of it and I had to reinstall scala.</p>