nlight-jdev / jcouchdb

Automatically exported from code.google.com/p/jcouchdb
Other
0 stars 0 forks source link

Please tell me which jars i need if i want to use jcouchdb.jar? #55

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Today,i downloaded the jcouchdb.jar and wanted to use it.My code is as follow:
public class CreateDB {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Database db=new Database("127.0.0.1",5984,"mycouchdb");
        Map<String,String> doc =new HashMap<String,String>();
        doc.put("foo","value for the foo attribute");
        doc.put("bar", "value for the bar attribute");
        db.createDocument(doc);

    }

}

But,after i run it,the eclipse told me i need a jar,after i add the jar to the 
project,then it again tell me i need other jar.I spend lots of time finding the 
jar.
Who can tell me which jars i need if i want to use jcouchdb?

Original issue reported on code.google.com by bupt.z...@gmail.com on 21 Aug 2010 at 1:13

GoogleCodeExporter commented 8 years ago
The easiest way is using maven. Just declare the dependency to jcouchdb and 
you're done:

    <dependency>
        <groupId>com.google.code.jcouchdb</groupId>
        <artifactId>jcouchdb</artifactId>
        <version>0.11.0-1</version>
    </dependency>

If you don't use mave you can download one of the *-src.zip downloads that also 
contain all dependencies jar in the sub directories lib/compile and lib/test 
inside the archive.

lib/compile contains all dependencies you need to run jouchdb
lib/test contains some additional dependencies used by the test cases

Original comment by ff...@gmx.de on 21 Aug 2010 at 1:25

GoogleCodeExporter commented 8 years ago

Original comment by ff...@gmx.de on 11 Sep 2010 at 9:14