Reputation: 1796
I've recently decided to install Scala IDE 3.0.3 (which is basicly Eclipse Kepler with scala plugin). I've newest specs (specs2_2.10-23.11), scalaz (2.10-7.0.4), collection (scalaj-collection_2.10-1.5) and scala library [2.10.4]
I tried to run my tests in scala using "Scala JUnit Test" but i got this error
java.lang.NoClassDefFoundError: scalaz/concurrent/Strategy$ at org.specs2.reporter.DefaultExecutionStrategy$$anonfun$execute$1$$anonfun$2.apply(ExecutionStrategy.scala:43) at org.specs2.reporter.DefaultExecutionStrategy$$anonfun$execute$1$$anonfun$2.apply(ExecutionStrategy.scala:41) at scala.collection.LinearSeqOptimized$class.foldLeft(LinearSeqOptimized.scala:111) at scala.collection.immutable.List.foldLeft(List.scala:84) at org.specs2.reporter.DefaultExecutionStrategy$$anonfun$execute$1.apply(ExecutionStrategy.scala:41) at org.specs2.reporter.DefaultExecutionStrategy$$anonfun$execute$1.apply(ExecutionStrategy.scala:38) at scalaz.syntax.IdOps$class.$bar$greater(IdOps.scala:15) at scalaz.syntax.ToIdOps$$anon$1.$bar$greater(IdOps.scala:78) at org.specs2.reporter.JUnitReporter$class.report(JUnitReporter.scala:44) at org.specs2.runner.JUnitRunner$$anon$4.report(JUnitRunner.scala:43) at org.specs2.runner.JUnitRunner.run(JUnitRunner.scala:50) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.ClassNotFoundException: scalaz.concurrent.Strategy$ at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 17 more
What causing that? I probably missing something but I can't find what.
My tests are running just fine with gradle.
Upvotes: 2
Views: 1177
Reputation: 1796
Well meaby someone will find it helpfull. I find solution: I missed scalaz-concurrent
jar which apparently is not included in scalaz-core
. Note that you need the same version of core
and concurrent
in order to work.
Upvotes: 1