Set up Java projects in Eclipse

Set classpath variables

The project requires several JARs to resolve compile-time dependencies. Set up the following Eclipse classpath workspace variables to make these JARs available:

Variable name

Path

AEP_SDKS

Path to the directory containing all ADEP SDK content

THIRD_PARTY

Path to the directory containing all third-party libraries that ICR requires

DS_SDK

Path to the directory containing the Document Server SDK.

Follow these steps to set the variables:
  1. Create a folder named THIRD_PARTY on your development machine.

  2. Create a folder named DS_SDK on your development machine.

  3. Now, copy the Document Services SDK—typically, C:\Adobe\ADEP\Document Services 10.0\sdk—from an ADEP server to this folder.

  4. In Eclipse, select Window > Preferences.

  5. In the Preferences dialog, click Java > Build Path > Classpath Variables.

  6. Click New and define the variables listed above.

  7. Click OK.

Add third-party variables

To satisfy compile-time dependencies, add the following third-party libraries to the THIRD_PARTY folder:

  • jackrabbit-spi-commons-2.1.1.jar

  • jcr-2.0.jar

  • junit-4.7.jar

  • org.apache.sling.api-2.1.1-R991494.jar

  • org.osgi.compendium-1.2.0.jar

  • spring-beans-3.0.3.RELEASE.jar

  • spring-context-3.0.3.RELEASE.jar

  • spring-core-3.0.3.RELEASE.jar

  • spring-security-core-3.0.3.RELEASE.jar

  • velocity-1.5.jar

  • slf4j-api-1.6.0.jar

  • org.apache.sling.event-3.0.2.jar

  • commons-lang-2.4.jar

  • spring-web-3.0.3.RELEASE.jar

  • biz.aQute.bnd.jar (required to generate the ICR service bundle; not a compile-time dependency)

Import projects into Eclipse

  1. In Eclipse, right-click the Package Explorer view to bring up the context menu. Select Import Wizard.

  2. In the Import dialog, select General > Existing Project into workspace. Click Next.

  3. In the Select root directory field, enter ICR_SOURCE/integratedcontentreview/adobe_icr_services and press Enter.

    The Projects view gets populated with the portal project.

  4. Click Finish to import the project into your Eclipse workspace.