Bug in Scala Library

I try to compile a simple object in IntelliJ:

object Test02 {
def main(args: Array[String]) { println("Hello World"); }}

I got this message:

Error:scalac: Scala compiler JARs not found (module 'scala02'):
E:\.ivy2\cache\org.scala-lang\scala-library\jars\scala-library-2.11.8.jar,
E:\.ivy2\cache\org.scala-lang\scala-compiler\jars\scala-compiler-2.11.8.jar,
E:\.ivy2\cache\org.scala-lang\scala-reflect\jars\scala-reflect-2.11.8.jar

I checked the Project Structure and checked the modules.
Modules are located here:

C:/Users/asus1/.ivy2/cache/org.scala-lang/scala-compiler/jars/scala-compiler-2.11.8.jar


How Can I change E: to C:/Users/asus1/ ?
Do I need to move all to E: ?

How people manage when the project and the jar are in different location ?

It seems a bug of IntellJ ...?

 

1 comment
Comment actions Permalink
Official comment

Hi!

If your project is SBT-based, simply refresh the project via "SBT" tool window.

If you Scala SDK is created manually, you may either edit the Scala SDK library (via Project Structure) or replace the existing Scala SDK with a new Scala SDK that uses correct JAR paths.

Is your project is backed by SBT? How exactly your project was created - have your copied the project from some other machine?

Please sign in to leave a comment.