Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Dependency setup - NoClassDefFoundError #148

Open
ganeshchand opened this issue Mar 23, 2017 · 1 comment
Open

Dependency setup - NoClassDefFoundError #148

ganeshchand opened this issue Mar 23, 2017 · 1 comment

Comments

@ganeshchand
Copy link

ganeshchand commented Mar 23, 2017

I have the following dependency on my build.sbt and I am using Scala 2.12.1

libraryDependencies += "com.github.seratch" %% "awscala" % "0.6.0"

Doing a simple bucket list gives me NoClassDefFoundError error as shown below.

  import awscala._, s3._

  implicit val s3 = S3.at(Region.US_WEST_2)
  val buckets = s3.buckets
  buckets.toList.foreach(println)
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/protocol/HttpRequestExecutor
	at com.amazonaws.http.AmazonHttpClient.<clinit>(AmazonHttpClient.java:145)
	at com.amazonaws.AmazonWebServiceClient.<init>(AmazonWebServiceClient.java:162)

I have setup the AWS keys correctly. Is there any additional dependency or setup required to make this work?

@ganeshchand
Copy link
Author

ganeshchand commented Mar 23, 2017

It seems like the error went away after adding

libraryDependencies += "org.apache.httpcomponents" % "httpclient" % "4.5.3"```

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant