Error: scala: No ‘scala-library*.jar’ in Scala compiler library

  1. Open File -> Project Structures -> Libraries, remove any scala sdk in it, e.g. scala-sdk-2.11.8 in the following image.
    enter image description here

  2. Click on +, then Scala SDK.
    enter image description here

  3. Select the right Scala SDK from the list, for me, it’s Ivy-Scala-2.11.8 shown in the picture.enter image description here

  4. Select the current project(mine is spark-test), click OK.
    enter image description here

  5. Then click OK to close it.
    enter image description here

  6. Run again, it should work now.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)