1.4 - Preparation to code

In order to develop with the Apache Directory LDAP API, you first have to use a Java 6 JDK or higher.

Second, you have to download the API. This package contains not only the LDAP API, but also all the needed jars (like commons-lang, slf4j...).

If you are using Maven, you don't even have to refer all the libraries that are found in the package, they will be deduced automatically. You will just have to add a dependency on api-all.jar :

<dependency>
  <groupId>org.apache.directory.shared</groupId>
  <artifactId>api-all</artifactId>
</dependency>

This is it, you should be ready to code !