Cassandra NoClassDefFoundError:com / google / common / util / concurrent / AsyncFunction

时间:2016-11-19 13:02:27

标签: cassandra datastax-java-driver

cluster = Cluster.builder()                                                    
                .addContactPoint("localhost")
                .build();

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/util/concurrent/AsyncFunction

我路上唯一的罐子是2 cassandra java driver jars cassandra-driver-core-2.1.10.3.jar和cassandra-driver-mapping-2.1.10.3.jar

由于

1 个答案:

答案 0 :(得分:5)

问题在于缺少guava.jar。在类路径中添加此解决了(this)问题。 总体问题是缺少合适的DataSatx文档