Add JAR Files to Eclipse-based IDEs

Related Topics ...

Accessing Javadoc

With Eclipse-based IDEs, any JARs you add to a Factory project's WEB-INF/lib directory, you also need to add to the Designer plug-in's lib directory (eclipse/com.bowstreet.designer.core/lib).

In addition, modify the plugin.xml file in the com.bowstreet.designer.core directory so that it references the new JAR.

To add a new JAR to an Eclipse-based IDE:

  1. Add a copy of the JAR to a project's WEB-INF/lib or WEB-INF/clientLibs directory.

We can also add a jar to the WEB-INF/work/lib directory if you want the jar to be dynamically loaded by the Factory. This is convenient during development.

  1. Add a copy of the JAR to the eclipse_dir/plugins/com.bowstreet.designer.core/lib directory.

  2. Modify the Designer plug-in's plugin.xml file in the eclipse_dir/plugins/com.bowstreet.designer.core/ directory by adding a <library /> element to the <runtime /> node similar to the following:

<library name="lib/my_classes.jar"/>

  1. Right-click on the Factory project, displaying the Properties for Factory dialog.

  2. Select the Java Build Path entry and click on the Libraries tab, displaying a list of JAR files currently in the project's Java Build Path.

  3. Click the Add JARs button, displaying the JAR Selection dialog.

  4. Navigate to the appropriate directory and select the JAR you want to add to the project.

  5. Click OK in the JAR Selection dialog.

  6. Click OK in the Properties for Factory dialog.