java.lang.NoClassDefFoundError: Could not initialize class gen2$

GitHub | jdnavarro | 8 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    You're using incompatible versions of Scala and ScalaTest. If you're using Scala 2.11.x you should use ScalaTest 2.11. You can add this libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.0" % "test" to build definitions to avoid this issue.
  2. 0
    samebug tip
    This bug happens from SDK 8 b117 to SDK 8 b122, try updating to 122 or further to fix it.
    via GitHub by imeredith
  3. 0

    Can't run Play in dev mode under Ubuntu

    Stack Overflow | 5 months ago | Denys
    java.lang.RuntimeException: No main class detected.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Fatal: scalac-scoverage-plugin not in libraryDependencies when migrating from 0.99 to 1.0

    GitHub | 2 years ago | seratch
    java.lang.Exception: Fatal: scalac-scoverage-plugin not in libraryDependencies
  6. 0

    GitHub comment 153#183236829

    GitHub | 1 year ago | gslowikowski
    java.lang.Exception: Fatal: scalac-scoverage-plugin not in libraryDependencies

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class gen2$

      at $e48c883453350db41fd5$$anonfun$core$6.apply()
    2. Unknown
      $e48c883453350db41fd5$$anonfun$core$6.apply
      1. $e48c883453350db41fd5$$anonfun$core$6.apply(build.sbt:31)
      2. $e48c883453350db41fd5$$anonfun$core$6.apply(build.sbt:31)
      2 frames
    3. Scala
      Function1$$anonfun$compose$1.apply
      1. scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
      1 frame
    4. SBT
      $tilde$greater$$anonfun$$u2219$1.apply
      1. sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
      1 frame
    5. sbt Task system
      Transform$$anon$4.work
      1. sbt.std.Transform$$anon$4.work(System.scala:63)
      1 frame
    6. SBT
      CompletionService$$anon$2.call
      1. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
      2. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:228)
      3. sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
      4. sbt.Execute.work(Execute.scala:237)
      5. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
      6. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:228)
      7. sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
      8. sbt.CompletionService$$anon$2.call(CompletionService.scala:28)
      8 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      6. java.lang.Thread.run(Thread.java:745)[error]
      6 frames