title: 1.4 - Preparation to code navPrev: 1.3-apache-ldap-api-rational.html navPrevText: 1.3 - The Apache LDAP API rational navUp: 1-introduction.html navUpText: 1 - Introduction navNext: 2-basic-ldap-api-usage.html navNextText: 2 - Basic LDAP API Usage

1.4 - Preparation to code

The Apache Directory LDAP API requires Java 7 or higher.

Secondly, you must download the API 1.0 or API 2.0. This package contains the LDAP API plus all of its dependent jars (like commons-lang, slf4j...).

If you're using Maven, add the following dependency on api-all.jar :

:::XML
<dependency>
  <groupId>org.apache.directory.api</groupId>
  <artifactId>api-all</artifactId>
  <version>${ldap-api-version}</version>
</dependency>

and all of its dependent jar files will be included automatically. That's it, now you should be ready to code!