cvogt / cbt

CBT - fun, fast, intuitive, compositional, statically checked builds written in Scala
Other
488 stars 60 forks source link

Build failed with `java.lang.NoClassDefFoundError: Could not initialize class com.datastax.driver.core.Cluster` #512

Closed therealcisse closed 7 years ago

therealcisse commented 7 years ago

Sample project here: https://github.com/amsayk/phantom-playground

Added MavenDependency("com.datastax.cassandra", "cassandra-driver-core", "3.2.0") but same error.

cvogt commented 7 years ago

try either of cbt direct compile or override def flatClassLoader = true or override def fork = true or both of the last two. CBT isolates classloaders by default similar to jigsaw or osgi, but this disables it.

therealcisse commented 7 years ago

Either override def flatClassLoader = true or override def fork = true or both works.

Thanks.

cvogt commented 7 years ago

Nice! In that case I can recommend flatClassLoader as it is slightly faster in some cases, otherwise not slower.

On June 13, 2017 1:06:12 AM EDT, Amadou Cisse notifications@github.com wrote:

Either override def flatClassLoader = true or override def fork = true or both works.

Thanks.

-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/cvogt/cbt/issues/512#issuecomment-308007903