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?