Vini
Vini

Reputation: 8419

Google Calendar API: java.lang.ClassNotFoundException: com.google.common.collect.Maps

I am creating a fairly simple Java client that connects to my account and gets all the events. Here I am getting an exception saying :

java.lang.ClassNotFoundException: com.google.common.collect.Maps

Could anyone tell me which JAR am I missing and moreover where to download it from?

Upvotes: 12

Views: 35239

Answers (5)

Shivangi Gupta
Shivangi Gupta

Reputation: 194

I also solved this problem by including guava dependency. Guava is superset of the old Google Collections Library. Here is the link: https://mvnrepository.com/artifact/com.google.guava/guava/21.0 Include this dependency in your build.sbt

Upvotes: 0

Christian Gibbs
Christian Gibbs

Reputation: 140

For those of us who use Maven, here's the dependency entry for guava:

    <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
    <dependency>
        <groupId>com.google.guava</groupId>
        <artifactId>guava</artifactId>
        <version>19.0</version>
    </dependency>

Credit where credit is due: the above is from http://mavenrepository.com/artifact/com.google.guava/guava/19.0

Upvotes: 1

Robert Munteanu
Robert Munteanu

Reputation: 68268

Google collections, now known as Guava.

Upvotes: 24

JohnnyLin_tw
JohnnyLin_tw

Reputation: 21

I solved this problem by download the jar file guava-r07.jar. http://code.google.com/p/guava-libraries/downloads/detail?name=guava-r07.zip Try it.

Upvotes: 2

Renu Batheja
Renu Batheja

Reputation:

Did you try importing google-collect-1.0-rc1.jar? It can be found at (in the source tree) : http://code.google.com/p/gdata-java-client/source/browse/#svn/trunk/java/deps

Thanks, Renu

Upvotes: 0

Related Questions