Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

Thanks

like image 840
Sam-T Avatar asked Sep 07 '25 18:09

Sam-T


1 Answers

The issue is with missing guava.jar. Adding this in the class path solved (this) issue. Overall issue is lack of suitable DataSatx documentaion

like image 149
Sam-T Avatar answered Sep 11 '25 01:09

Sam-T