Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoClassDefFoundError: scala/concurrent/util/Duration$ in Scala 2.10 RC1 #6550

Closed
scabug opened this issue Oct 21, 2012 · 2 comments
Closed
Assignees
Labels

Comments

@scabug
Copy link

scabug commented Oct 21, 2012

Running Akka Actor Code with Scala 2.10 RC1 gives NoClassDefFoundException:

$ scala Main
java.lang.NoClassDefFoundError: scala/concurrent/util/Duration$
at akka.actor.ActorSystem$Settings.(ActorSystem.scala:138)
at akka.actor.ActorSystemImpl.(ActorSystem.scala:462)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:110)
at akka.actor.ActorSystem$.apply(ActorSystem.scala:92)
at Main$delayedInit$body.apply(Akka.scala:15)
at scala.Function0$class.apply$mcV$sp(Function0.scala:40)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.App$$anonfun$main$1.apply(App.scala:71)
at scala.collection.immutable.List.foreach(List.scala:309)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
at scala.collection.mutable.ListBuffer.foreach(ListBuffer.scala:45)
at scala.App$class.main(App.scala:71)
at Main$.main(Akka.scala:14)
at Main.main(Akka.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

@scabug
Copy link
Author

scabug commented Oct 21, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6550?orig=1
Reporter: Alexander Grünewald (gruenewa)
Affected Versions: 2.10.0
Attachments:

  • Akka.scala (created on Oct 21, 2012 8:56:33 AM UTC, 435 bytes)

@scabug
Copy link
Author

scabug commented Dec 4, 2012

@retronym said:

scala> scala.concurrent.duration.Duration.getClass
res4: Class[_ <: scala.concurrent.duration.Duration.type] = class scala.concurrent.duration.Duration$

This class moved, Akka has since been updated.

https://github.com/akka/akka/blame/master/akka-actor/src/main/scala/akka/actor/ActorSystem.scala

Be sure to use the version of Akka built for a particular release candidate of Scala.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants