Configuring Eclipse for component development

Before developing Discovery Framework components in Eclipse using the Component SDK, two Eclipse classpath variables need to be created.

Note: Depending on your version of Eclipse, the steps below may vary slightly.

To configure the Eclipse classpath variables for Endeca Discovery Framework component development:

In Eclipse, go to Window > Preferences > Java > Build Path > Classpath Variables and create two new variables:
Name Path Example
DF_GLOBAL_LIB Path to the application server global library. C:/endeca-portal/tomcat-<version>/¬

common/lib

DF_PORTAL_LIB Path to the Liferay ROOT Web application library. C:/endeca-portal/tomcat-<version>/¬

webapps/ROOT/WEB-INF/lib

Once these variables have been created, the components generated by the Component SDK are ready to be imported into Eclipse.