Formatting a simple string, but `java.lang.NoSuchMethodError`
I'm using Scala 2.9.2. Run Scala and test a simple code, this code is… OK: ... val title = "Hashing file (%s)..." format sizeToStr(file.length) But I couldn't understand what is what, while I put that code into a simple app, compiling OK, at runtime it throws this one: java.lang.NoSuchMethodError: scala.Predef$.augmentString(Ljava/lang/String;)Lscala/collection/immutable/StringOps; at group.pals.penguin.app.shasher.Shasher$.calcHash(shasher.scala:119) at group.pals.penguin.app.shasher.Shasher$.main(shasher.scala:76) at group.pals.penguin.app.shasher.Shasher.main(shasher.scala) at sun.reflect