1

I installed scala on intellij IDE and used the following code to test whether it's working. My scala version is 2.12.4.

object learnScala {
 def main(args: Array[String]): Unit = {
 print("Hello")
 }
}

But I got the following error. Error:scalac: No 'scala-library*.jar' in Scala compiler classpath in Scala SDK SBT: org.scala-lang:scala-library:2.12.4:jar

How to solve it?

N.Chandimali
  • 799
  • 1
  • 8
  • 23

1 Answers1

0

You should have an overlay saying something like: "No SDK set for project. Please set up SDK" and a link inside the overlay.

If you don't have that go to File -> Project Structure -> Global Libraries

user2887596
  • 641
  • 5
  • 15
  • No it is something different, I have the same problem and configured Global Libraries. –  Nov 10 '17 at 23:01