Search:

Search all manuals
Search this manual
Manual
Couchbase Client Library: Java 1.1
Community Wiki and Resources
Download Client Library
JavaDoc
Couchbase Developer Guide 2.0
Couchbase Server Manual 2.0
Java Client Library
SDK Forum
Wiki: Java Client Library
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
1.1 Preparations
Chapter Sections
Chapters

1.1.2. Setting up your IDE

In this example here we'll use the NetBeans IDE, but of course any other will work as well. After installing the IDE, go to File -> New Project, select Maven and Java Application. Give it a name (like "examples") and change the location to a directory where you want to place the files. We'll use the com.couchbase namespace, but you can use your own if you like (just make sure to change it later in the source files when you copy them).

Now that you've created your project, it's time to add the Couchbase Maven repository. The easiest way to do this is to go to Window -> Services, spot the Maven Repositories tree, right click on it and click Add Repository. Use the following settings (or modify the directly):

Jump back to your new project and right click on Dependencies, and then Add Dependency. For now, we only need to add the Couchbase SDK itself, because the transitive dependencies will be fetched automatically. Use the following settings:

Now all dependencies are in place and we can move forward to our first application with Couchbase!