# NoClassDefFoundError on akka.actor.Props$ when upgrading to 2.5.19

**URL:** <https://discuss.akka.io/t/noclassdeffounderror-on-akka-actor-props-when-upgrading-to-2-5-19/3005>\
**Category:** Akka Libraries\
**Created:** [December 20, 2018, 5:13am UTC](https://discuss.akka.io/t/noclassdeffounderror-on-akka-actor-props-when-upgrading-to-2-5-19/3005 "2018-12-20T05:13:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mebigfatguy](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/mebigfatguy/32/1088_2.png) [@mebigfatguy](https://discuss.akka.io/u/mebigfatguy)\
**Post date:** [December 20, 2018, 5:13am UTC](https://discuss.akka.io/t/noclassdeffounderror-on-akka-actor-props-when-upgrading-to-2-5-19/3005/1 "2018-12-20T05:13:33Z")

</div>

Greetings,

I’m trying to upgrade akka from 2.5.18 to 2.5.19 as well as scala-library to 2.12.8 and previously working code now gives me

java.lang.NoClassDefFoundError: Could not initialize class akka.actor.Props$  
[java] akka.actor.Props.create(Props.scala)

When i look at the exception the static initializer is throwing a InvocationTargetException

and embedded in that i see the target is

java.lang.NoClassDefFoundError: scala/Product$class

When i look in the scala-library jar i do in fact see that class (well i see scala/Product at least), However the cause of the NCDF on Product is indeed a ClassNotFoundException.

When i revert scala-library back to 2.11.12 it (but leave akka-actor at 2.5.19) it works fine.

Anyone know what my issue could be?

---

<div class="post-metadata">

**Author:** ![johanandren](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/johanandren/32/85_2.png) [@johanandren](https://discuss.akka.io/u/johanandren)\
**Post date:** [December 20, 2018, 8:20am UTC](https://discuss.akka.io/t/noclassdeffounderror-on-akka-actor-props-when-upgrading-to-2-5-19/3005/2 "2018-12-20T08:20:46Z")

</div>

Usually with that kind of errors it is about mixed Akka versions or Scala versions, check the dependency tree that there isn’t some mismatch. Could be because of transitive dependencies of some library you are using pulls in an older Akka module etc.

---

<div class="post-metadata">

**Author:** ![jrudolph](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/jrudolph/32/80_2.png) [@jrudolph](https://discuss.akka.io/u/jrudolph)\
**Post date:** [December 20, 2018, 12:28pm UTC](https://discuss.akka.io/t/noclassdeffounderror-on-akka-actor-props-when-upgrading-to-2-5-19/3005/3 "2018-12-20T12:28:42Z")

</div>

I’ve also seen sbt having problems detecting changes in Scala versions / dependencies leading to the same error. Cleaning and rebuilding the project might help.

Johannes
