本文介绍了Cassandra NoClassDefFoundError:com / google / common / util / concurrent / AsyncFunction的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
cluster = Cluster.builder()
.addContactPoint("localhost")
.build();
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/util/concurrent/AsyncFunction
我路上仅有的两个jars是2个cassandra java驱动程序jars cassandra-driver-core-2.1.10.3.jar和cassandra-driver-mapping-2.1.10.3.jar
The only jars I have in my path are the 2 cassandra java driver jars cassandra-driver-core-2.1.10.3.jar and cassandra-driver-mapping-2.1.10.3.jar
谢谢
推荐答案问题在于缺少guava.jar。将其添加到类路径中可解决此问题。 总体问题是缺少合适的DataSatx文档
The issue is with missing guava.jar. Adding this in the class path solved (this) issue. Overall issue is lack of suitable DataSatx documentaion
更多推荐
Cassandra NoClassDefFoundError:com / google / common / util / concurrent / Async
发布评论