I'm trying to compile a mixed java-scala code using intelliJ 14.1.4
but it keeps giving me this error:
Error Compiling SBT component 'compiler-interface-2.9.2-52.0'
I have tried to down grade my scala-compiler version but this didn't helped.
any help would be appreciated.
To start working with Scala in IntelliJ IDEA you need to download and enable the Scala plugin. If you run IntelliJ IDEA for the first time, you can install the Scala plugin when IntelliJ IDEA suggests downloading featured plugins. Otherwise, you can use the Settings | Plugins page for the installation.
Open IntelliJ IDEA, go to File Menu --> Plugins --> [ Or directly press Ctrl+Alt+S ] Click on "Browse repositories" button and enter "Scala". Select Scala plugin to install it.
Press Ctrl+Alt+S to open Settings/Preferences dialog. From the options on the left, select Build, Execution, Deployment | Compiler | Scala | Scala Compiler Server.
To add Scala support to existing module:Right-click the module in Project View, choose “Add Framework Support…” Check “Scala” in technologies list (unavailable if module has Scala facet attached) Provide a path to Scala installation (if not detected)
I had the same issue:
Error Compiling the SBT component 'compiler-interface-2.11.8-53.0'
I was running Java 9,jdk-9.0.4, I fixed this by going back to Java 8, jdk1.8.0_161
this confuse me a lot
in idea you have two jdk setup
one is
another is
you need to set this two both to jdk1.8 or will always be conflict with your scala.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With