Why does IntelliJ seem to import my scala libraries twice?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


Why does IntelliJ seem to import my scala libraries twice?



I have just started trying to use Scala with IntelliJ. I created a new project as per the instructions in:



https://docs.scala-lang.org/getting-started-intellij-track/getting-started-with-scala-in-intellij.html



I installed scala 2.12.6 using Homebrew and selected that when creating my new Scala project in IntelliJ.



For some reason, under External Libraries, I have every jar inside the scala installation twice:



IntelliJ_Scala_Libraries



I created a hello world and when I try to run it, and I got this error:



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



However inside the Scala libraries folder there is only one jar of each.



I'm not sure what I'm doing wrong here. I've tried other versions of Scala, but got the same results.









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Visual Studio Code: How to configure includePath for better IntelliSense results

C++ virtual function: Base class function is called instead of derived