1.4 - Preparation to code

The Apache Directory LDAP API requires Java 8 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 :

    <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!