More issues with IntelliJ 9.0.1 "Hello World" in Scala - Predef version 5.0 vs 4.1

Posted by Alex R on Stack Overflow See other posts from Stack Overflow or by Alex R
Published on 2010-04-19T14:25:21Z Indexed on 2010/04/20 1:03 UTC
Read the original article Hit count: 453

Filed under:
|
|

Any ideas what could cause this?

Scala signature Predef has wrong version
Expected 5.0
found: 4.1 in .... scala-library.jar

I tried both versions 2.7.6 and 2.8 RC1 of scala-*.jar, the result was the same.

JDK is 1.6.u20.

UPDATE

Today uninstalled IntelliJ 9.0.1, and installed 9.0.2 Early Availability, with the 4/14 stable version of the Scala plug-in.

Then I setup a project from scratch through the wizards:

  • new project from scratch
  • JDK is 1.6.u20
  • accept the default (project) instead of global / module
  • accept the download of Scala 2.8.0beta1 into project's lib folder

Created a new class:

object hello {
  def main(args: Array[String]) {
    println("hello: " + args);
  }
}

For my efforts, I now have a brand-new error :)

Here it is:

Scalac internal error: class java.lang.ClassNotFoundException [java.net.URLClassLoader$1.run(URLClassLoader.java:202), java.security.AccessController.doPrivileged(Native Method), java.net.URLClassLoader.findClass(URLClassLoader.java:190), java.lang.ClassLoader.loadClass(ClassLoader.java:307), sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301), java.lang.ClassLoader.loadClass(ClassLoader.java:248), java.lang.Class.forName0(Native Method), java.lang.Class.forName(Class.java:169), org.jetbrains.plugins.scala.compiler.rt.ScalacRunner.main(ScalacRunner.java:72)]

Thanks

© Stack Overflow or respective owner

Related posts about scala

Related posts about scala-2.7.7