Getting compilation error with Scala plugin in Intellij Idea

Hi,

I have added Scala plugin in Intellij IDEA, but getting below error when I compile any Java class,

Please anyone let me know how to solve this , I am stuck here. Thanks in advance.

java.lang.NoClassDefFoundError: org/jetbrains/plugins/scala/compiler/rt/ClassRunnerCaused by: java.lang.ClassNotFoundException: org.jetbrains.plugins.scala.compiler.rt.ClassRunner


at java.net.URLClassLoader$1.run(URLClassLoader.java:202)


at java.security.AccessController.doPrivileged(Native Method)


at java.net.URLClassLoader.findClass(URLClassLoader.java:190)


at java.lang.ClassLoader.loadClass(ClassLoader.java:306)


at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)


at java.lang.ClassLoader.loadClass(ClassLoader.java:247)


Could not find the main class: org.jetbrains.plugins.scala.compiler.rt.ClassRunner.  Program will exit.


Exception in thread "main"

Please sign in to leave a comment.