I am having trouble setting up a connection to my local CouchDB programmatically.
I am using couchDb4j- and things seem to look good, until I run and try to connect to the DB.
My console is throwing the following error:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/apache/http/params/HttpParams
Caused by: java.lang.ClassNotFoundException: org.apache.http.params.HttpParams
Since my small application is not finding a class, I've checked my dependencies- everything should be fine. I have:
Which should include all necessary http specific .jar (especially the first one should include the httpParams binaries; source: http://mvnrepository.com/artifact/org.apache.httpcomponents/httpcore/4.0-beta3 ).
To prevent from including wrong binaries cached on my system, I am running the following:
mvn clean && mvn package
I've also deleted my .m2 folder.
Googling around gave me the hint that my classpath may be wrong leading to missing dependencies in runtime. But I have set up my classpath in my pom; see here: